Share via


MapsTimeZoneClient.GetTimeZoneByCoordinatesAsync Method

Definition

Use to get the current, historical, and future time zone information for the specified latitude-longitude pair..

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>> GetTimeZoneByCoordinatesAsync (Azure.Core.GeoJson.GeoPosition coordinates, Azure.Maps.TimeZones.GetTimeZoneOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTimeZoneByCoordinatesAsync : Azure.Core.GeoJson.GeoPosition * Azure.Maps.TimeZones.GetTimeZoneOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>>
override this.GetTimeZoneByCoordinatesAsync : Azure.Core.GeoJson.GeoPosition * Azure.Maps.TimeZones.GetTimeZoneOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>>
Public Overridable Function GetTimeZoneByCoordinatesAsync (coordinates As GeoPosition, options As GetTimeZoneOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TimeZoneResult))

Parameters

coordinates
GeoPosition

Coordinates of the point for which time zone information is requested. This parameter is a list of coordinates, containing a pair of coordinate(lat, long). When this endpoint is called directly, coordinates are passed in as a single string containing coordinates, separated by commas.

options
GetTimeZoneOptions

Contains parameters for get timezone by id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

coordinates is null.

Applies to