Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
OpenStreetMap-based Photon place-search results for adding small-scale geocoding to a map application.
Report a ProblemFrom Source to Product Signal
Komoot's public Photon demo answers small place searches without a key. Start with one query and two results; the demo may throttle heavy use and has no availability guarantee, while OpenStreetMap attribution still applies.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
response = requests.get(
"https://photon.komoot.io/api/",
params={"q": "Zurich", "limit": 2},
headers={"User-Agent": "TrilemmaDataCatalog/1.0"}, timeout=20,
)
response.raise_for_status()
for place in response.json()["features"]:
print(place["properties"].get("name"), place["geometry"]["coordinates"])Test a Useful Signal
Show two geocoding candidates with their source coordinates.
Komoot Photon is a company source. Last verified 2026-09-28. Temporal coverage: current Photon search index.