Udostępnij za pośrednictwem


MapsSearchClient.GetReverseGeocoding Method

Definition

Translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located. This endpoint will return address information for a given coordinate.

public virtual Azure.Response<Azure.Maps.Search.Models.GeocodingResponse> GetReverseGeocoding (Azure.Core.GeoJson.GeoPosition coordinates, Azure.Maps.Search.Models.ReverseGeocodingQuery options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReverseGeocoding : Azure.Core.GeoJson.GeoPosition * Azure.Maps.Search.Models.ReverseGeocodingQuery * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.GeocodingResponse>
override this.GetReverseGeocoding : Azure.Core.GeoJson.GeoPosition * Azure.Maps.Search.Models.ReverseGeocodingQuery * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.GeocodingResponse>
Public Overridable Function GetReverseGeocoding (coordinates As GeoPosition, Optional options As ReverseGeocodingQuery = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GeocodingResponse)

Parameters

coordinates
GeoPosition

The coordinates of the location that you want to reverse geocode. Here it is represented by GeoPosition. Example: &coordinates=lon,lat.

options
ReverseGeocodingQuery

additional options

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

coordinates is null.

Applies to