Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Live OpenStreetMap features for building bounded place, amenity, and infrastructure lookup tools without downloading the planet.
From source to product signal
Overpass returns live OSM features for a bounding box or named area. Start with one city bbox and a LIMIT, not a planet dump. Send a descriptive User-Agent. Results are volunteer-mapped, ODbL share-alike applies to derivative databases, and coverage varies by city.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
query = """
[out:json][timeout:25];
node["amenity"="cafe"](40.74,-74.02,40.76,-73.99);
out 20;
"""
response = requests.get(
"https://overpass-api.de/api/interpreter",
params={"data": query},
headers={
"User-Agent": (
"TrilemmaDataCatalogExample/1.0 "
"(https://data.trilemma.foundation)"
)
},
timeout=30,
)
response.raise_for_status()
cafes = pd.json_normalize(response.json()["elements"])
print(cafes.filter(regex="id|lat|lon|tags.name").head())Test a useful signal
Test whether a bounded Overpass query can power a neighborhood amenity list.
OpenStreetMap contributors is a community source. Last verified 2026-08-18. Temporal coverage: continuously updated OpenStreetMap features.