GoogleTimezoneAPI

FREE
By Dmitry Shumytskyi | Updated a year ago | Mapping
Popularity

3.9 / 10

Latency

127,273ms

Service Level

0%

GoogleTimezoneAPI Overview

Followers: 2
Resources:
Product Website
API Creator:
avatar
Dmitry Shumytskyi
dimas
Rate API:
Log In to Rate API

README

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

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
Rating: 5 - Votes: 1