Reverse Geocoding API Accurate | Documentation & Examples
Before you begin
So, for example, when converting geographical coordinates like latitude 40.758678 and longitude 73.978798, using reverse geocoding API, you will receive the exact address “35 Rockefeller Plaza, New York, NY 10111, USA”.
DistanceMatrix.ai offers both solutions, Reverse Geocoding API for turning latitude and longitude into address and Direct Geocoding API for converting addresses on the map into geographical coordinates.
How to use Reverse Geocoding API
Upon querying, you'll receive a response in the form of a JSON document containing the most pertinent results. Examples of such requests and their corresponding responses are provided in the documentation below.
Security comes first. That's why HTTPS is strongly advised, particularly for applications dealing with sensitive data such as user location. HTTPS encryption strengthens your app's security, making it more resistant to surveillance and modification.
Our reverse geocoding API gives you the flexibility to make requests in the way that best suits your needs. The detailed instructions above guide you on how to make these requests using Postman, a versatile and easy-to-use API interaction tool.
How to use Geocoding API through Postman
One of the easiest and most efficient ways to start interacting and integrating our API into your projects is using Postman, known for its user-friendly interface and powerful features.
Here's how to do it:
- To get started with Postman, install it on your computer or access a browser web version.
- Import our pre-configured API collection:
- Open Postman.
- Click on the “Import” button in the top left corner.
- Select “Import from link” and paste this Postman collection link: https://www.postman.com/distancematrix/workspace/distance-matrix/overview
- Upon importing, Postman will automatically add the collection into your workspace.
- For users of the online version of Postman, you can directly open the collection link and create a fork. Do this by clicking on the three dots next to the collection name.
- Set up your environment in Postman, go to the Variables section and add your authentication token in the “API Authorization Token” field.
- Don't forget to save these changes.
- Make your first request: Select an endpoint from our collection, configure your request parameters, and hit send to see the response.

-min.webp)
-min.webp)
-min.webp)
-min.webp)
Once you're comfortable with the basics, you can explore more advanced features of our API. Our detailed documentation below will guide you through the specific functionalities of our API.
Reverse Geocoding Developer Guide
API Request Format
Here is an example of how a proper API request would/could look:
- HTTPS Encryption: https:// is used for secure communication.
- Domain: api.distancematrix.ai is the domain for the accurate API.
- Request Path: /maps/api/geocode/json specifies the type of request.
- Required Parameter: ?latlng=37.422387799999996,-122.08418770000002 specifies the latitude and longitude for reverse geocoding.
- Optional Parameter: &language=uk can be added for language preference.
- Authorization Token: &key=<your_access_token> is necessary for authenticating the request.
This setup is tailored for Reverse Geocoding API, where different parameters are used compared to standard geocoding. The page will guide you on obtaining latitude and longitude from an address API, including the required and optional parameters to use, and the type of geocoding response you can expect. Additionally, a sample JSON response based on the output flag will be provided.
For example, here is a request sample to convert the coordinates of the Egyptian pyramids into an address, but get results in English instead of Arabic:
Required parameters in a Reverse Geocoding request:
Optional parameters in a Reverse Geocoding request:
- Supported languages are listed on the website.
- If not specified, it defaults to the Accept-Language header or the request's domain language.
- Reverse Geocoding provides readable street addresses in the local language, transliterating if needed, and uses the preferred language for all other addresses. If a name isn’t available in the chosen language, the closest match is used.
- street_address: Precise street address.
- route: Named routes like "US 101".
- intersection: Major intersections.
- political: Political entities.
- country: National political entities.
- administrative_area_level_1 to administrative_area_level_5: Various levels of civil entities below the country.
- colloquial_area: Commonly used names.
- locality: Cities or towns.
- sublocality (and sublocality_level_1 to sublocality_level_5): Entities below a locality.
- neighborhood: Neighborhoods.
- premise: Named locations like buildings.
- subpremise: Entities within a larger premise.
- postal_code: Postal codes.
- natural_feature: Natural landmarks.
- airport: Airports.
- park: Parks.
- point_of_interest: Points of interest, like famous buildings.
- "ROOFTOP": Precise street address level locations.
- "RANGE_INTERPOLATED": Approximations between precise points.
- "GEOMETRIC_CENTER": Centers of lines or areas.
- "APPROXIMATE": Approximate locations.
Reverse Geocoding Responses
Here's how the request is structured:
* Important Note: Reverse geocoding estimates the nearest addressable location within a specific tolerance range, returning zero results if no close match is found.
Please, note that the JSON response has two primary elements:
Status Codes
Error Messages
*Important Note: The “error_message” field isn't always included, and its contents can vary.
Results
Key fields in a typical result include:
- location: The geocoded latitude and longitude. This is often the most crucial field for standard address lookups.
- location_type: Additional information about the location. Supported values include:
- “ROOFTOP”: A precise geocode with exact street address location.
- "RANGE_INTERPOLATED": An approximate result, often used when specific rooftop data is unavailable.
- "GEOMETRIC_CENTER": The center point of a line or area.
- “APPROXIMATE”: An estimated location.
Address Types and Address Component Types
FAQ
What can you do with the Reverse Geocoding API?
Businesses that deal with geocoding widely use both direct geocoding and reverse geocoding APIs in software and apps to locate stores, vehicles, and customers, aiding in transportation management and movement tracking.
More than just address identification/placement, reverse geocoding is a versatile tool for location mapping, route planning, and data analysis. This technology can be beneficial for logistic companies who require precise location details. There are more real-world examples of reverse geocoding API in action on our website.
Why use the Reverse Geocoding API?
Reverse Geocoding API from DistanceMatrix.ai provides accurate location data from 99% of the world in a variety of formats. So that you can get the correct address in seconds from anywhere. That's what puts our tool in high demand across multiple industries. Besides, due to its high accuracy, it competes with top providers in the field. Another thing to mind is that the switching process from any side services to our API is seamless without any hassle.
Before you begin
So, for example, when converting geographical coordinates like latitude 40.758678 and longitude 73.978798, using reverse geocoding API, you will receive the exact address “35 Rockefeller Plaza, New York, NY 10111, USA”.
DistanceMatrix.ai offers both solutions, Reverse Geocoding API for turning latitude and longitude into address and Direct Geocoding API for converting addresses on the map into geographical coordinates.
How to use Reverse Geocoding API
Upon querying, you'll receive a response in the form of a JSON document containing the most pertinent results. Examples of such requests and their corresponding responses are provided in the documentation below.
Security comes first. That's why HTTPS is strongly advised, particularly for applications dealing with sensitive data such as user location. HTTPS encryption strengthens your app's security, making it more resistant to surveillance and modification.
Our reverse geocoding API gives you the flexibility to make requests in the way that best suits your needs. The detailed instructions above guide you on how to make these requests using Postman, a versatile and easy-to-use API interaction tool.
How to use Geocoding API through Postman
One of the easiest and most efficient ways to start interacting and integrating our API into your projects is using Postman, known for its user-friendly interface and powerful features.
Here's how to do it:
- To get started with Postman, install it on your computer or access a browser web version.
- Import our pre-configured API collection:
- Open Postman.
- Click on the “Import” button in the top left corner.
- Select “Import from link” and paste this Postman collection link: https://www.postman.com/distancematrix/workspace/distance-matrix/overview
- Upon importing, Postman will automatically add the collection into your workspace.
- For users of the online version of Postman, you can directly open the collection link and create a fork. Do this by clicking on the three dots next to the collection name.
- Set up your environment in Postman, go to the Variables section and add your authentication token in the “API Authorization Token” field.
- Don't forget to save these changes.
- Make your first request: Select an endpoint from our collection, configure your request parameters, and hit send to see the response.

-min.webp)
-min.webp)
-min.webp)
-min.webp)
Once you're comfortable with the basics, you can explore more advanced features of our API. Our detailed documentation below will guide you through the specific functionalities of our API.
Reverse Geocoding Developer Guide
API Request Format
Here is an example of how a proper API request would/could look:
- HTTPS Encryption: https:// is used for secure communication.
- Domain: api-v2.distancematrix.ai is the domain for the accurate API.
- Request Path: /maps/api/geocode/json specifies the type of request.
- Required Parameter: ?latlng=37.422387799999996,-122.08418770000002 specifies the latitude and longitude for reverse geocoding.
- Optional Parameter: &language=uk can be added for language preference.
- Authorization Token: &key=<your_access_token> is necessary for authenticating the request.
This setup is tailored for Reverse Geocoding API, where different parameters are used compared to standard geocoding. The page will guide you on obtaining latitude and longitude from an address API, including the required parameters to use, and the type of geocoding response you can expect. Additionally, a sample JSON response based on the output flag will be provided.
Required parameters in a Reverse Geocoding request:
Reverse Geocoding Responses
Here's how the request is structured:
* Important Note: Reverse geocoding estimates the nearest addressable location within a specific tolerance range, returning zero results if no close match is found.
Please, note that the JSON response has two primary elements:
Status Codes
Error Messages
*Important Note: The “error_message” field isn't always included, and its contents can vary.
Results
Key fields in a typical result include:
- location: The geocoded latitude and longitude. This is often the most crucial field for standard address lookups.
- location_type: Additional information about the location. Supported values include:
- “ROOFTOP”: A precise geocode with exact street address location.
- "RANGE_INTERPOLATED": An approximate result, often used when specific rooftop data is unavailable.
- "GEOMETRIC_CENTER": The center point of a line or area.
- “APPROXIMATE”: An estimated location.
Address Types and Address Component Types
FAQ
What can you do with the Reverse Geocoding API?
Businesses that deal with geocoding widely use both direct geocoding and reverse geocoding APIs in software and apps to locate stores, vehicles, and customers, aiding in transportation management and movement tracking.
More than just address identification/placement, reverse geocoding is a versatile tool for location mapping, route planning, and data analysis. This technology can be beneficial for logistic companies who require precise location details. There are more real-world examples of reverse geocoding API in action on our website.
Why use the Reverse Geocoding API?
Reverse Geocoding API from DistanceMatrix.ai provides accurate location data from 99% of the world in a variety of formats. So that you can get the correct address in seconds from anywhere. That's what puts our tool in high demand across multiple industries. Besides, due to its high accuracy, it competes with top providers in the field. Another thing to mind is that the switching process from any side services to our API is seamless without any hassle.