1.0.2 • Published 8 years ago

geo-timezone v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

geo-timezone

Returns timezone using a geographical coordinate.

1) Install module

npm install geo-timezone --save

2) Import the dependency

var geoTimezone = require('geo-timezone');

Use

var geoTimezone = require('geo-timezone');

geoTimezone.decodeByLngLat({
	coordinates: [39.6034810, -119.6822510] // [ltn, lat]
}, function(err, result) {
  console.log(result);
});

response:

{
    dstOffset: 0,
    rawOffset: -28800,
    status: "OK",
    timeZoneId: "America/Los_Angeles",
    timeZoneName: "Pacific Standard Time"
}