Table of Contents

Class TimeZoneCloudClient

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

A class provides the methods to access the TimeZone APIs.

public class TimeZoneCloudClient : CloudClient, IDisposable
Inheritance
TimeZoneCloudClient
Implements
Inherited Members

Remarks

A class provides the methods to access the TimeZone APIs.

Constructors

TimeZoneCloudClient()

Initilizes an instance. You need apply client Id and secret by properties.

public TimeZoneCloudClient()

TimeZoneCloudClient(string, string)

Initializes an instance with ClientID and ClientSecret. It will send a request to GIS Server to gain the token which will be added to the Header for all the requests.

public TimeZoneCloudClient(string clientId, string clientSecret)

Parameters

clientId string

The ClientID for the auth.

clientSecret string

The ClientSecret for the auth.

Exceptions

ArgumentNullException

Thrown when the clientId or clientSecret is null.

Methods

GetAllTimeZoneNames()

Get the names of all the time zones.

public Collection<string> GetAllTimeZoneNames()

Returns

Collection<string>

GetAllTimeZoneNamesAsync()

Get the names of all the time zones.

public Task<Collection<string>> GetAllTimeZoneNamesAsync()

Returns

Task<Collection<string>>

GetAllTimeZones()

Get all the time zones.

public Collection<CloudTimeZoneResult> GetAllTimeZones()

Returns

Collection<CloudTimeZoneResult>

GetAllTimeZonesAsync()

Get all the time zones.

public Task<Collection<CloudTimeZoneResult>> GetAllTimeZonesAsync()

Returns

Task<Collection<CloudTimeZoneResult>>

GetTimeZoneByCoordinate(double, double)

Get the time zone of a coodinate.

public CloudTimeZoneResult GetTimeZoneByCoordinate(double latitude, double longitude)

Parameters

latitude double

The latitude of the coodinate.

longitude double

The longitude of the coodinate.

Returns

CloudTimeZoneResult

The time zone result.CloudTimeZoneResult

GetTimeZoneByCoordinate(double, double, int)

Get the time zone of a coodinate.

public CloudTimeZoneResult GetTimeZoneByCoordinate(double x, double y, int projectionInSrid)

Parameters

x double

The X of the coordinate.

y double

The Y of the coordinate.

projectionInSrid int

The Srid of the coordinate.

Returns

CloudTimeZoneResult

The time zone result.CloudTimeZoneResult

GetTimeZoneByCoordinate(double, double, string)

Get the time zone of a coodinate.

public CloudTimeZoneResult GetTimeZoneByCoordinate(double x, double y, string projectionInProj4String)

Parameters

x double

The X of the coordinate.

y double

The Y of the coordinate.

projectionInProj4String string

The Proj4String of the coordinate.

Returns

CloudTimeZoneResult

The time zone result.CloudTimeZoneResult

GetTimeZoneByCoordinateAsync(double, double)

Get the time zone of a coodinate.

public Task<CloudTimeZoneResult> GetTimeZoneByCoordinateAsync(double latitude, double longitude)

Parameters

latitude double

The latitude of the coodinate.

longitude double

The longitude of the coodinate.

Returns

Task<CloudTimeZoneResult>

The time zone result.CloudTimeZoneResult

GetTimeZoneByCoordinateAsync(double, double, int)

Get the time zone of a coodinate.

public Task<CloudTimeZoneResult> GetTimeZoneByCoordinateAsync(double x, double y, int projectionInSrid)

Parameters

x double

The X of the coordinate.

y double

The Y of the coordinate.

projectionInSrid int

The Srid of the coordinate.

Returns

Task<CloudTimeZoneResult>

The time zone result.CloudTimeZoneResult

GetTimeZoneByCoordinateAsync(double, double, string)

Get the time zone of a coodinate.

public Task<CloudTimeZoneResult> GetTimeZoneByCoordinateAsync(double x, double y, string projectionInProj4String)

Parameters

x double

The X of the coordinate.

y double

The Y of the coordinate.

projectionInProj4String string

The Proj4String of the coordinate.

Returns

Task<CloudTimeZoneResult>

The time zone result.CloudTimeZoneResult