Geocoding
Applies to: see pricing tiers.
In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.
[!Important] By using this feature, you agree to the preview legal terms. See the Preview Supplemental Terms for additional details.
Query parameters
Version number of Azure Maps API.
Maximum number of responses that will be returned. Default: 5, minimum: 1 and maximum: 20.
The official street line of an address relative to the area, as specified by the locality, or postalCode, properties. Typical use of this element would be to provide a street address or any official address.
Comma separated string of country or region codes(ISO 3166-1 Alpha-2), e.g. FR,ES. This will limit the search to the specified countries. Only the first country code will be used for the Geocoder.
A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by latitude and longitude values. For more information, see Location and Area Types. When you specify this parameter, the geographical area is taken into account when computing the results of a location query.
Example: lon1,lat1,lon2,lat2
A string that an ISO 3166-1 Alpha-2 region/country code. This will alter Geopolitical disputed borders and labels to align with the specified user region.
A point on the earth specified as a latitude and longitude. When you specify this parameter, the user’s location is taken into account and the results returned may be more relevant to the user. Example: &location=lon,lat
The country subdivision portion of an address, such as WA.
The county for the structured address, such as King.
The named area for the structured address.
The locality portion of an address, such as Seattle.
The postal code portion of an address.
Restrict the geocoding result to the country or region that is specified in the countryRegionSet field and the state, province or territory specified in the adminDistrict field.
Headers
Language in which search results should be returned.
Please refer to Supported Languages for details.
Parameters
Response
OK