Table of Contents

Class TimeZoneRequest

Namespace
GoogleMapsApi.Entities.TimeZone.Request
Assembly
GoogleMapsApi.dll

Request for the Google Time Zone API, which returns the time-zone identifier and UTC offset (including any DST offset) for a given location and timestamp.

public class TimeZoneRequest : SignableRequest
Inheritance
TimeZoneRequest
Inherited Members

Properties

BaseUrl

Base URL (without scheme) for the Google Maps Web Service endpoint this request targets. Derived requests append their service-specific path.

protected override string BaseUrl { get; }

Property Value

string

IsSSL

The language in which to return results. See the list of supported domain languages. Note that we often update supported languages so this list may not be exhaustive. Defaults to en.

public override bool IsSSL { get; set; }

Property Value

bool

Language

The language in which to return results. See the list of supported domain languages. Note that we often update supported languages so this list may not be exhaustive. Defaults to en

public string? Language { get; set; }

Property Value

string

Location

location: a comma-separated lat,lng tuple (eg. location=-33.86,151.20), representing the location to look up

public Location Location { get; set; }

Property Value

Location

TimeStamp

Timestamp specifies the desired time as seconds since midnight, January 1, 1970 UTC. The Time Zone API uses the timestamp to determine whether or not Daylight Savings should be applied. Times before 1970 can be expressed as negative values.

public DateTime TimeStamp { get; set; }

Property Value

DateTime

Methods

GetQueryStringParameters()

Builds the list of query-string parameters that will be sent with the request. Derived classes override to contribute their service-specific parameters.

protected override QueryStringParametersList GetQueryStringParameters()

Returns

QueryStringParametersList

The parameters to include in the request URL.