Using the Reverse Geocoder API
The ReverseGeocode endpoint allows you to retrieve the following:
- Country: Retrieves the name of a specific country based on the coordinates.
- Address: Retrieves the best matching address details, including country, pincode, state, city, and locality based on the coordinates.
- Address Suggestions: Retrieves the top 5 matching address suggestions with address details based on the provided coordinates.
The following query parameters are required for all requests:
Parameter | Data Type | Description | Example |
---|---|---|---|
type* | string | The reverse geocode type. | Acceptable values:
|
lat* | Float | Latitude value. | 17.35386833 |
lng* | Float | Longitude value. | 82.547853333 |
error_radius* | Integer | Error radius in meters. | 50 |
The following example retrieves the name of a specific country based on the coordinates. The following example request returns "India":
The ReverseGeocodeAddress endpoint retrieves the best matching address details, including country, pincode, state, city, and locality based on the coordinates.
The response includes the following details in the data array:
Field | Data Type | Description | Example |
---|---|---|---|
level_1 | String | The location state name. | jammu and kashmir |
level_2 | String | The location city name. | baramulla |
level_3 | String | The locality or suburb of the city. | sopore |
level_4 | String | The sub-locality of the address when applicable. |  |
level_5 | String | Provides more detailed road and street level information. This will be populated in later versions of the API. |  |
country | String | Country | India |
pincode | Integer | The pincode of the given address. | 193201 |
formatted_address | String | The formatted address. | sopore, baramulla, jammu and kashmir, 193201 |
address_attributes | String | The specific area associated with the address such as a business, commercial complex, or urban area. This will be populated in later versions of the API. | |
landmark_with_distance | Dictionary of dictionaries | Landmarks, landmark types, and their distances. | See Sample Response |
NOTE
The ReverseGeocodeAddressSuggestions response includes the same parameters as the ReverseGeocodeAddress response.

The ReverseGeocodeAddressSuggestions endpoint retrieves the top 5 matching address suggestions with address details based on the provided coordinates.