The Google Maps Time Zone API provides a simple interface to request the time zone for a location on the earth.
Returns time zone data for a point on the earth, specified by a latitude/longitude pair.
Field | Type | Description |
---|---|---|
location | String | latitude, longitude, representing the location to look up. |
timestamp | String | Specifies the desired time as seconds since midnight, January 1, 1970 UTC. The Google Maps 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. |
language | String | The language in which to return results |
apiKey | String | Access token obtained from Google.com |
Returns the local time of a given location.
Field | Type | Description |
---|---|---|
location | String | latitude, longitude, representing the location to look up. |
timestamp | String | Specifies the desired time as seconds since midnight, January 1, 1970 UTC. The Google Maps 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. |
apiKey | String | Access token obtained from Google.com |