Share via


MapsTimeZoneClient.GetTimeZoneByCoordinates Method

Definition

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

public virtual Azure.Response<Azure.Maps.TimeZones.TimeZoneResult> GetTimeZoneByCoordinates (Azure.Core.GeoJson.GeoPosition coordinates, Azure.Maps.TimeZones.GetTimeZoneOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTimeZoneByCoordinates : Azure.Core.GeoJson.GeoPosition * Azure.Maps.TimeZones.GetTimeZoneOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>
override this.GetTimeZoneByCoordinates : Azure.Core.GeoJson.GeoPosition * Azure.Maps.TimeZones.GetTimeZoneOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>
Public Overridable Function GetTimeZoneByCoordinates (coordinates As GeoPosition, options As GetTimeZoneOptions, Optional cancellationToken As CancellationToken = Nothing) As 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