Easy Overpass (Overpass Query Builder)

Build Overpass QL queries easily for OpenStreetMap data

Tag Query Builder
Query Settings
seconds
Set a value between 1-1800 seconds
Optional: Filter by date (YYYY-MM-DDTHH:MM:SS)
From
Start date for diff/adiff (YYYY-MM-DDTHH:MM:SS)
To
End date for diff (defaults to now)
Bounding Box (Optional)
// Your generated Overpass QL query will appear here
                        
Help & Examples

  1. Select the type of OSM element (Node, Way, Relation, or any)
  2. Enter the tag key (e.g., amenity, shop, tourism)
  3. Choose an operator (=, !=, ~ for regex, etc.)
  4. Enter the tag value (e.g., restaurant, cafe, hotel)
  5. Optional: Set timeout (1-1800 seconds) for long-running queries
  6. Optional: Set date filter to query historical data at a specific point in time
  7. Optional: Set diff dates to see changes between two points in time (adiff shows what happened to elements)
  8. Optionally, set a bounding box to limit your search area
  9. Click "Generate Query" to create your Overpass QL query
  10. Copy the query or open it directly in Overpass Turbo/Ultra

Find all restaurants in an area:
  • Element: Node/Way/Relation
  • Key: amenity
  • Operator: =
  • Value: restaurant
Find all hotels with 4 or more stars:
  • Element: Node/Way/Relation
  • Key: tourism
  • Operator: =
  • Value: hotel
  • Key: stars
  • Operator: >=
  • Value: 4
Advanced Date Filtering:
  • Date Filter: Query the database as it existed at a specific point in time (uses XML output)
  • Diff (From/To): Show changes between two dates - what was added/modified (uses XML output)
  • Adiff (Augmented Diff): Like diff but also shows what happened to elements that no longer match (uses XML output)
  • Note: Date and diff queries automatically use XML output format for compatibility with historical data
  • Example: Set From: 2024-01-01, To: 2024-12-31 to see all changes in 2024
  • Example: Set Date: 2020-01-01 to see historical data from 2020

Overpass QL is a query language for OpenStreetMap data. It allows you to extract specific data from OSM based on various criteria.

Key concepts:

  • Elements: The basic components of OSM data (nodes, ways, relations)
  • Tags: Key-value pairs that describe elements (e.g., amenity=restaurant)
  • Bounding Box: A rectangular area defined by latitude/longitude coordinates
  • Operators: = (equals), != (not equals), ~ (matches regex), etc.
  • Date Filtering: Query historical data using [date:"YYYY-MM-DDTHH:MM:SSZ"]
  • Diff Queries: Compare data between dates using [diff:"from","to"] or [adiff:"from"]
  • Output Formats: JSON for regular queries, XML for date/diff queries (automatic)

For more information, see the Overpass QL documentation.

Nominatim

Nominatim is a search engine for OpenStreetMap data. It allows you to look up a location by name or address (geocoding) and generate addresses for OSM points (reverse geocoding). It's used in this tool for searching locations to set your bounding box.

Overpass API

Overpass API is a read-only API that serves up custom selected parts of the OSM map data. It's optimized for data consumers that need a few elements within a small area or up to roughly 10 million elements in some larger area. This tool generates queries that are executed against the Overpass API.

Overpass Turbo

Overpass Turbo is a web-based data mining tool for OpenStreetMap. It provides a user-friendly interface to run Overpass QL queries and visualize the results on an interactive map. You can export your queries from this tool to Overpass Turbo for visualization.

Overpass Ultra

Overpass Ultra is a modern, user-friendly interface for the Overpass API. It offers features like syntax highlighting, query validation, and map visualization. It's an alternative to Overpass Turbo with a more modern interface and additional features.

Taginfo

Taginfo helps you find the most popular OpenStreetMap tags and how they're used. It shows statistics about which tags are used together, which values are most common, and where in the world they're used. This tool uses Taginfo to provide autocomplete suggestions for tag keys and values.