top of page
Search
Writer's picturesamerwekroweirweop ramiwerweowpeopere

How to Use the Google Reverse Geocoding API

When a user clicks or adds a point on a map, the reverse geocoding API converts those coordinates into a readable address. This is an essential function for location-based websites and applications. Google is the dominant provider for Usps reverse geocoding Api, but they require a paid account and have stringent usage policies that can become expensive and limit what you can do with their data. This is why open source and commercial alternatives are so popular.



To make a reverse geocode request, you provide a sample location in coordinates and an API key. This key is tracked by the API to track calls and determine whether you are within the rate limits which govern how much you will need to pay.

The result from a reverse geocode request is an object that contains a list of features found at or near the sample location. Typically, these are street addresses. However, some other types of features can also be returned: POI centroids,

rooftop locations, and polygon area features. If multiple feature types are within the search tolerance, the one with the highest priority is returned.

Typically, the object’s identifier is also included in the geocode response for reference purposes. This value can be used to retrieve the same object through the /lookup endpoint.


The preferredLabelValues parameter allows you to specify which address component values should be included in the output fields of a reverse geocode response. For example, if you include preferredLabelValues=localCity, the output match address will include the primary local city name instead of the postal city.


SITES WE SUPPORT



SOCIAL LINKS


Comments


bottom of page