Hi everyone,

welcome to day one of Launch Week 2024!

Our reverse geocoding results now include a new field distance_from_q which contains the distance (in meters) from the coordinates in the API request and the coordinates of the result.

As an example, if you request the coordinates 52.51926,13.37659 we return Reichstag Building, Platz der Republik 1, 10557 Berlin, Germany, but the requested coordinates are actually 75 meters away from the center point of the building.

The relevant portion of the API response now looks like

      "confidence": 9,
      "distance_from_q": {
        "meters": 75
      },
      "formatted": "Reichstag Building, Platz der Republik 1, 10557 Berlin, Germany",
      "geometry": {
        "lat": 52.5186537,
        "lng": 13.3761015
      }

Depending on your use case, the distance measurement can be a useful factor in helping decide how relevant the result is.

As always you can see all the details and example of our geocding API response format on the docs:

"The OpenCage Geocoding API response format"

Happy reverse geocoding,

Ed