photon
Search as you type with OpenStreetMap
Have a question?

A simple API

This instance only has an index for Germany!

Download the index here

  • Search

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

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

    photon.weiler.rocks/api/?q=berlin&limit=1
  • Force preferred language

    photon.weiler.rocks/api/?q=berlin&lang=de
  • Reverse geocoding

    photon.weiler.rocks/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:

    This instace is runnig on a small 2 core server, please be respectfull with the resources.

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!