Maps Platform
Product updates, customer stories, and tips and tricks on Google Maps Platform
Sleepy Colleagues and Sydney in Summer: Time Zone functionality in the Maps API
Wednesday, October 10, 2012
Working in Google’s Sydney office gives a person a particular appreciation for the time zones of the world. The time difference between
Sydney
and our headquarters in
Mountain View, California
can make it difficult to connect with teams and find suitable meeting times. More often than not, we Sydney engineers have been woken by 2am calendar reminders and email notifications sent from colleagues from around the world. Sleep deprivation has just been a part of the job!
Fortunately, help is at hand (especially for our sleep-patterns) with the release of time zone functionality in the Google Maps API.
The API returns information about (you guessed it) the time zone of a particular location on Earth at a particular point in time. The response contains information such as the IANA Time Zone ID, long form name, offset from UTC and any offset due to daylight savings.
For example, here’s a request for time zone information for Sydney on the 5th of January, 2013:
https://maps.googleapis.com/maps/api/timezone/json?location=-33.86,151.20×tamp=1357347600.0&sensor=false
The response is as follows:
{
"dstOffset" : 3600.0,
"rawOffset" : 36000.0,
"status" : "OK",
"timeZoneId" : "Australia/Sydney",
"timeZoneName" : "Australian Eastern Daylight Time"
}
As you can see, we’re in Australian Eastern Daylight Time with a base offset of 10 hours from UTC. We also have an extra hour of evening light (as shown by
dstOffset
), perfect for the wonderful time Sydneysiders are having at the Sydney Festival opening night.
Regarding usage, developers have access to the API for up to 2,500 requests per day, while
Google Maps API for Business
customers receive 100,000 requests. Full documentation is available here:
http://developers.google.com/maps/documentation/timezone
.
We hope that you find this new functionality useful, and that your colleagues elsewhere in the world, wherever they happen to be, can get a night of peaceful, undisturbed sleep.
Posted by Jez Fletcher, Software Engineer, Google Maps APIs
Labels
5 Great Maps
ads
advertising
africa
Andorra
Android
App Engine
art
Australia
Autocomplete
Boston
brazil
Bruce Springsteen
Bulgaria
Campus Map
Chrome
City 24/7
Code for America
COM API
Computerlogy
creative advertising campaigns
Custom Map Types
design
developer
Developer Challenge
Developer stories
Directions API
Drawing Tools
Driving Directions
Earth
Earth API
Elevation API
environment
epungo
Estonia
Europe
Fab Friday
flash
Fusion Tables
GAE
games
GDAL
Gears
geo
Geodesic Lines
Germany
Gibraltar
GIS
Global Economy
gme
Google Analytics
Google App Engine
Google Earth
Google Earth API
Google I/O
Google Maps
Google Maps API
Google Maps Engine
Google Places API
Google Places API Developer Challenge
Google Street View API
government
Hackathon
Hamburg
heat map
heatmap
hiking
Hungary
iOS
JavaScript
jQuery
kenya
KML
Latitude API
Latvia
launch
Lithuania
local search
London
Mac
Map of the Week
maps
Maps API
Maps API for Flash
Maps Data API
Maps Zen
Marker Clusterer
Marketing
Mars
meetup
mobile
moca
modern art
More Than a Map
Morethanamap
Movies
Neighborhoods
New York City
Office Hours
Olympics
Panoramio
photos
Place Summaries
Places API
Plus
polygons
Premier
public transit
public transit layer
Python
real estate
rock
sao paulo
screencast
SketchUp
Slovakia
Slovenia
South Africa
Spain
Spatial Data Files
Static Maps API
street view
Styled Maps
Sydney
Track
traffic layer
Transportation
Tripline
Twitter
UN
United Nations
V3
Vancouver Olympics
visualizations
Volkswagen
VW
web
youtube
Archive
2018
Nov
Jul
Jun
May
Mar
Feb
2017
Nov
Jun
May
Apr
Mar
Feb
Jan
2016
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Feb
2015
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Feed
Follow @GMapsPlatform
Follow
Google Maps Platform Website
Give us feedback in our
Product Forums
.