search_overpass
Execute Overpass QL queries to find OpenStreetMap features like POIs, roads, or amenities within a specified bounding box, returning structured JSON results.
Instructions
Execute an Overpass QL query to find POIs, roads, or other OSM features within a bounding box. You must provide the base query. The server automatically wraps it in a bbox filter and returns structured JSON.
COMMON TAG EXAMPLES:
Restaurants:
nwr["amenity"="restaurant"]Pizza:
nwr["amenity"="fast_food"]["cuisine"="pizza"]Supermarkets:
nwr["shop"="supermarket"]Parks:
nwr["leisure"="park"]Hospitals:
nwr["amenity"="hospital"]Schools:
nwr["amenity"="school"]Parking:
nwr["amenity"="parking"]Highways/Roads:
way["highway"]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | A text location to search for (e.g. 'San Francisco'). Requires MAPBOX_ACCESS_TOKEN env var. Either 'location' or 'bbox' MUST be provided. | |
| bbox | No | The geometry to parse. Can be a raw bounding box string ('lat1,lng1,lat2,lng2'), WKT, GeoJSON, or ogrinfo extent. Either 'location' or 'bbox' MUST be provided. | |
| query | Yes | The Overpass QL core query. Example: `node["amenity"="cafe"]` or `nwr["leisure"="park"]`. DO NOT include the bounding box `(S,W,N,E)` or output format (`out json`), the server handles that automatically. | |
| limit | No | Maximum number of elements to return. Helps prevent enormous JSON responses. Default is 100. Set to a higher number if you need more results. |