GoogleTimezoneAPI

FREE
By dimas
Updated 9 months ago
Mapping
7.9/10
Popularity Score
309ms
Latency
100%
Success Rate

GoogleTimezoneAPI API Overview

Connect to the Google Timezone API to include the time zone on any map powered by Google Maps. Test an API call in your browser and export the code snippet.

The Google Timezone API is free up to a certain usage (as of 3/1/2017): https://developers.google.com/maps/documentation/timezone/intro

Contact API Provider
star-blueRate

GoogleTimezoneAPI

GoogleTimezoneAPI Package

The Google Maps Time Zone API provides a simple interface to request the time zone for a location on the earth.

  • Domain: Google
  • Credentials: Use api key if you need more quota only.

How to get credentials:

  1. If you need a higher quota, create an apiKey at Google console

GoogleTimezoneAPI.getTimeZone

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

GoogleTimezoneAPI.getLocalTime

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

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication