Udostępnij za pośrednictwem


MapsSearchClient.GetReverseGeocodingAsync 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 System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.GeocodingResponse>> GetReverseGeocodingAsync (Azure.Core.GeoJson.GeoPosition coordinates, Azure.Maps.Search.Models.ReverseGeocodingQuery options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReverseGeocodingAsync : Azure.Core.GeoJson.GeoPosition * Azure.Maps.Search.Models.ReverseGeocodingQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.GeocodingResponse>>
override this.GetReverseGeocodingAsync : Azure.Core.GeoJson.GeoPosition * Azure.Maps.Search.Models.ReverseGeocodingQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.GeocodingResponse>>
Public Overridable Function GetReverseGeocodingAsync (coordinates As GeoPosition, Optional options As ReverseGeocodingQuery = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GeocodingResponse))

Parameters

coordinates
GeoPosition

The coordinates of the location that you want to reverse geocode. Example: &coordinates=lon,lat.

options
ReverseGeocodingQuery

additional options

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

coordinates is null.

Applies to