Geocoding is the process of matching a text string such as a place name or address to possible real world locations, primarily based on latitude and longitude. Typically address geocoding returns a map location with a marker or pin representing the approximate location.
You can make an address geocoding request with a single text string or a list of addresses. The list may consist of structured address components such as house number, street and name or unstructured addresses such as a city or state. The results of an address geocoding query can vary significantly depending on how the input is formatted. For example, misspelled or ambiguous queries can produce geocoding results that do not accurately represent the location you are looking for. To optimize your geocoding responses you can follow best practices on address formatting.
The response to a geocoding request consists of an array of results including an identifier for the resulting map location and a status code. The identifier, known as a geocoder result, is a unique string for the location returned in the results. The status code is an integer indicating how successful the geocoding was. The following table describes the status codes returned by the geocoding API.
If the geocoder does not find a matching address, the return value is ZERO_RESULTS. This error can also be triggered by invalid input such as a missing or corrupted data type.
The types[] array in a geocoder result indicates the type of feature for which a location has been found. The types include a variety of tags such as locality, route, intersection and political which correspond to different categories of addresses that can be found in the results: for example, street_address indicates a precise street address
SITES WE SUPPORT
SOCIAL LINKS
Comments