photon
search as you type with OpenStreetMap

A simple API

  • Search

    photon.komoot.io/api/?q=berlin
  • Search, with priority to a geo position

    photon.komoot.io/api/?q=berlin&lat=52.3879&lon=13.0582
  • Limit number of results

    photon.komoot.io/api/?q=berlin&limit=1
  • Force preferred language

    photon.komoot.io/api/?q=berlin&lang=de
  • Reverse geocoding

    photon.komoot.io/reverse?lon=10&lat=52
  • All good GeoJSON

      {
        "type": "FeatureCollection",
        "features": [
          {
            "type": "Feature",
            "geometry": {
              "coordinates": [
                13.438596,
                52.519854
              ],
              "type": "Point"
            },
            "properties": {
              "city": "Berlin",
              "country": "Germany",
              "name": "Berlin"
            }
          },{
          "type": "Feature",
            "geometry": {
              "coordinates": [
                61.195088,
                54.005826
              ],
              "type": "Point"
            },
            "properties": {
              "country": "Russia",
              "name": "Berlin",
              "postcode": "457130"
            }
          }
        ]
      }
      
  • Note:

    Until October 2020 the API was available under photon.komoot.de. Requests still work as they redirected to photon.komoot.io but please update your apps accordingly.

Terms of Use

You can use the API for your project, but please be fair - extensive usage will be throttled. We do not guarantee for the availability and usage might be subject of change in the future.

Have fun with photon and make OSM grow!