Overpass Turbo for geolocation: a practical OSINT tutorial
Overpass Turbo lets you ask OpenStreetMap questions like where a pharmacy stands next to a tram stop near a church. How the data is structured, how to find the right tags, six query patterns for geolocation with working examples, and the limits of crowd-sourced map data.
· 7 min read

A photograph shows a petrol station, a church spire behind it and a railway bridge to the left. There is no readable text. You know the country, roughly. How do you find the place?
You could scroll across satellite imagery for hours. Or you could ask a database: where, in this region, is a petrol station within 150 metres of both a church and a railway bridge? OpenStreetMap holds that information, and Overpass Turbo is the free tool for asking. This guide teaches enough of its query language to turn what you see in a picture into a list of places to check.
The data behind the map
OpenStreetMap is a map built by volunteers, and underneath the picture it is a database. It has three kinds of object:
Object | Represents | Examples |
|---|---|---|
Node | A point | A postbox, a tree, a shop mapped as a point |
Way | A line or an outline | A road, a river, a building footprint |
Relation | A group of objects | A bus route, a large building complex, an administrative boundary |
Every object carries tags: pairs of a key and a value that describe it.
amenity=fuel
brand=Shell
name=Main Street Service Station
opening_hours=24/7Geolocating with Overpass means translating what you see into tags. A church is amenity=place_of_worship. A railway bridge is a way with railway=rail and bridge=yes. A wind turbine is power=generator with generator:source=wind.
Finding the right tag
Tags follow conventions, and guessing them wastes time.
The OpenStreetMap wiki documents every common tag, with photographs. Search for the thing you can see.
Taginfo shows how often each key and value is actually used, worldwide and by country. If a tag has three uses in the country you are searching, mappers there use a different one.
Look at a known example. Find a similar feature on openstreetmap.org, right-click and choose "Query features" to see how it was tagged.
The wizard. In Overpass Turbo, the Wizard button turns plain words such as
amenity=fuel in Lisboninto a query, which is a good way to learn the syntax.
Useful tags for geolocation:
You see | Tag |
|---|---|
Church, mosque, temple |
|
Petrol station |
|
Pharmacy, bank, school |
|
Shop of a kind |
|
Hotel |
|
Water tower, mast, chimney |
|
Electricity pylon |
|
Bridge |
|
Roundabout |
|
Level crossing |
|
Tram or bus stop |
|
Fountain, statue |
|
Sports pitch |
|
Your first query
Open Overpass Turbo, move the map to the area of interest, paste this and press Run:
[out:json][timeout:60];
nwr({{bbox}})["amenity"="fuel"];
out center;Line by line:
[out:json][timeout:60];sets the output format and allows up to 60 seconds.nwrmeans nodes, ways and relations. Features are mapped inconsistently as points or outlines, so search all three.({{bbox}})restricts the search to the area visible on the map. This is a shortcut that Overpass Turbo fills in.["amenity"="fuel"]is the tag filter.out center;returns each result with a single point, so that outlines show as markers.
Results appear on the map. Click any marker to see all its tags, which often include a name, brand and address.
To search a named area instead of the visible map:
[out:json][timeout:60];
{{geocodeArea:Portugal}}->.a;
nwr(area.a)["man_made"="water_tower"];
out center;Six patterns for geolocation
1. One distinctive feature
When the picture contains something rare, a single tag may be enough. Water towers, lighthouses, windmills, cable cars and observation towers number in the dozens or hundreds per country, few enough to check by eye.
[out:json][timeout:90];
{{geocodeArea:Denmark}}->.a;
nwr(area.a)["man_made"="lighthouse"];
out center;2. Two features near each other
This is the workhorse. Find one kind of feature, then keep only those with a second kind close by.
[out:json][timeout:120];
{{geocodeArea:Lisbon}}->.a;
nwr(area.a)["amenity"="pharmacy"]->.pharmacies;
nwr(around.pharmacies:40)["railway"="tram_stop"];
out center;The first search is stored in a named set, .pharmacies. The second returns tram stops within 40 metres of any member of that set. Choose the distance from the picture, generously, because mapped positions are imprecise.
3. Three features together
Chain another step. This finds petrol stations within 150 metres of a place of worship that are also within 150 metres of a railway bridge:
[out:json][timeout:180];
{{geocodeArea:Slovenia}}->.a;
nwr(area.a)["amenity"="place_of_worship"]->.churches;
way(area.a)["railway"="rail"]["bridge"="yes"]->.bridges;
nwr(around.churches:150)["amenity"="fuel"]->.near_church;
nwr.near_church(around.bridges:150);
out center;The last line takes the stations already near a church and keeps those also near a bridge. Three ordinary features in combination are often unique in a whole country.
4. Names and partial text
If part of a sign is readable, search names with a pattern. The ~ operator matches part of a value, and ,i ignores upper and lower case.
[out:json][timeout:60];
nwr({{bbox}})["name"~"central",i];
out center;This finds anything in view whose name contains "central". For a sign where you can read only "…ARMACIA S…", a pattern such as "armacia s" works. Add a second filter to narrow by type.
5. Brand plus surroundings
Chains are tagged with brand=. A particular supermarket chain next to a particular fast-food chain is a strong combination.
[out:json][timeout:120];
{{geocodeArea:Bavaria}}->.a;
nwr(area.a)["brand"="Lidl"]->.shops;
nwr(around.shops:100)["brand"="McDonald's"];
out center;6. Road and rail geometry
Layout can be queried too: a roundabout on a road of a certain class, a level crossing on a road with a particular reference number, a road bridge over a river.
[out:json][timeout:120];
{{geocodeArea:Estonia}}->.a;
way(area.a)["highway"]["ref"="2"]->.road;
node(around.road:30)["railway"="level_crossing"];
out;That returns level crossings on or beside road number 2.
Counting before you look
If a query returns thousands of results, the map is useless. Check the size first by replacing the output line:
out count;Then tighten the area, shorten the distance or add another feature until the number is small enough to inspect.
Asking about the past
The picture may be older than the current map. Overpass can answer as the database stood on an earlier date:
[out:json][timeout:120][date:"2019-06-01T00:00:00Z"];
nwr({{bbox}})["amenity"="fuel"];
out center;This helps when a shop has since closed or a building has been demolished. It shows what was mapped by that date, which depends on when a volunteer added it, so it is a guide and not a record of the real world on that day.
From candidates to confirmation
A query gives you places to check. It does not give you the answer.
Export or note the candidates. The Export menu saves results as a file you can open in other map tools.
Check each against satellite imagery for layout: building shapes, road angles, the relative position of the features in the picture.
Check street-level imagery for the view itself.
Match at least three independent fixed features before calling it confirmed.
Record the coordinates, the query you used and the reference imagery with its date.
The full method, including how to work out camera position and how to report a result, is in our guide to geolocating a photo. For dating the picture once the place is known, see chronolocation, and for overhead imagery see free satellite imagery.
The limits of the data
Coverage is uneven. Western Europe and large cities are mapped in great detail. Rural areas of many countries have roads and little else. Your feature may simply not be mapped.
Tagging is inconsistent. One mapper adds a shop as a point, another as a building outline, a third omits the brand. Use
nwr, and try alternative tags.Positions are approximate, particularly for points placed by eye. Keep
arounddistances generous.The map lags behind reality, in both directions. New features are missing and closed businesses remain.
Empty results mean little. Loosen the query before concluding the place is elsewhere.
The public servers are shared. Very large queries time out or are refused. Search a region, not a continent, and avoid running heavy queries repeatedly.
A query that finds nothing is still useful if you treat it correctly: it tells you which assumption to revisit, whether the region, the tag or the distance.
A worked example
A photograph shows a street with a tram line, a green pharmacy cross on the left and a small domed building at the end of the street. Signs are in Portuguese and the pavement is patterned stone.
The language and pavement suggest Portugal. Trams narrow it to a few cities.
A query for pharmacies within 40 metres of a tram stop in Lisbon returns 31 results.
Adding a place of worship within 200 metres reduces it to 9.
Satellite view rules out six, where the building at the end of the street has no dome.
Street-level imagery of the remaining three shows one with the same shopfronts, the same curve in the tram track and the dome at the end.
The location is confirmed on three matching features, and the query is kept as part of the record.
Frequently asked questions
What is Overpass Turbo used for?
Querying OpenStreetMap data. In geolocation, it finds places where a combination of features seen in a photo occur together.
Is Overpass Turbo free?
Yes. It is a free web tool that uses public Overpass servers, with fair-use limits on query size and frequency.
How do I find which tag to use?
Search the OpenStreetMap wiki for the feature, check Taginfo for how commonly a tag is used in your region, or inspect a similar known feature on openstreetmap.org.
Why does my query return nothing?
The feature may not be mapped, may use a different tag, or may be mapped as an outline when you searched only points. Use nwr, widen the distance and try alternative tags.
Can Overpass Turbo geolocate a photo by itself?
No. It produces candidate locations from features you identify. Each candidate must be confirmed against satellite or street-level imagery.





