Is there a hosted Photon geocoding API?
Yes. There are three ways to get a Photon API without building one yourself:
komoot's free public server at photon.komoot.io, a hosted Photon-compatible
service such as ChibiGeo, or your own instance from Photon's pre-built dumps.
Only the first needs no key and no sign-up, and only the last is fully yours. The middle one keeps
Photon's request format and adds an API key, published limits and an
availability you can plan around.
The three options
| photon.komoot.io | ChibiGeo | Self-hosted Photon | |
|---|---|---|---|
| Cost | free | free (2,500/day) to €99/month | server, from about €44/month |
| API key | none | yes | your choice |
| Published limits | none: "reasonable", throttled or banned beyond that | per plan, per second and per day or month | your hardware |
| Availability | no guarantee | status page | yours to run |
| Hosting | komoot | EU only | wherever you put it |
| Photon request format | native | compatible: /api and /reverse | native |
| Setup | none | sign up, swap the base URL | 95 GB index, 64 GB RAM, imports and updates |
komoot's public server
komoot built Photon and runs the public instance at https://photon.komoot.io.
It needs no key and is the default in many apps. Its terms are short: use it
"as long as the number of requests stay in a reasonable limit", and "extensive
usage will be throttled or completely banned". There is no published number and
no availability guarantee. We wrote up what that means in practice in
photon.komoot.io rate limits.
It is the right choice for a demo, a hobby map or a few lookups a day. It is the wrong one for a location-history import or a fleet of trackers, because that is exactly the "extensive usage" the terms describe.
Asked about business use in 2021, Photon maintainer Sarah Hoffmann answered: "Neither Komoot nor the maintainers of Photon provide a commercial API for Photon", and "as a rule of thumb: if you have to ask about the usage limits, you are likely better off running your own instance." The public server is a demo, and it is meant to stay one.
A hosted Photon-compatible API
ChibiGeo runs Photon behind an API key, hosted in the EU. The paths and parameters are Photon's, so most Photon clients work once you change the base URL:
# komoot demo
curl 'https://photon.komoot.io/api/?q=Brandenburger+Tor&limit=1'
# ChibiGeo
curl 'https://app.chibigeo.com/v1/photon/api?q=Brandenburger+Tor&limit=1' \
--header 'X-Api-Key: YOUR_API_KEY'
Reverse geocoding works the same way at /v1/photon/reverse?lat=…&lon=….
Some apps only let you set a base URL and cannot add a header. For those, put
the key in the path: https://app.chibigeo.com/v1/photon/YOUR_API_KEY. The app
appends /api or /reverse as usual. This is how
Reitti and
GeoPulse connect. For
Dawarich you set
PHOTON_API_HOST=app.chibigeo.com/v1/photon and PHOTON_API_KEY.
The limits are published per plan:
| Plan | Price | Requests | Rate |
|---|---|---|---|
| Hobby | free | 2,500/day, non-commercial | 1/s |
| Self-Hoster | €9.99/month | 500,000/month, Dawarich, Reitti and GeoPulse only | 5/s |
| Builder | €29/month | 500,000/month, commercial use | 10/s |
| Scale | €99/month | 2,500,000/month | 25/s |
When you reach a cap, requests get a 429 with limit_exceeded; nothing is
billed on top. Details are in the API reference.
Geoapify, LocationIQ and OpenCage are also hosted geocoders built on
OpenStreetMap data, and they are good ones. In the maintainer's words from the
same thread, such companies work "usually with their own custom API": Geoapify
searches at /v1/geocode/search?text=…, LocationIQ at /v1/search?q=… with
Nominatim-style results, OpenCage at /geocode/v1/json?q=…. A client written
for Photon needs code changes to use them. Our
comparison covers where each
of them does better than we do.
Self-hosting Photon
You can run Photon yourself from the pre-built dumps. The planet index is about 95 GB, and Photon's documentation recommends 64 GB of RAM. On a dedicated server that starts at roughly €44 a month, before you count imports, updates and monitoring. The arithmetic is in What does it actually cost to self-host a planet Photon?. If you only need one country, a regional extract needs much less.
Which one to pick
- A few lookups a day, nothing depends on it: komoot's public server.
- An app or import that has to keep working, without running a 64 GB server: a hosted Photon-compatible API.
- Full control, very high volume, or data that must never leave your network: self-host.
FAQ
Is photon.komoot.io free for commercial use? komoot does not publish separate commercial terms. The public server is offered for "reasonable" use, can throttle or ban heavy users, and has no availability guarantee.
Do I need to change my code to move off photon.komoot.io? With a Photon-compatible API, usually only the base URL and the API key change. The request parameters and the GeoJSON response stay Photon's.
Can I use a hosted Photon API from the browser? Yes, with a browser key restricted to your site's origin. Browser keys are visible to visitors, so keep server-side keys for anything that needs a secret.