Geolocation time zone

I have a latitude / longitude geolocation pair, is there a way / tool to get the appropriate time zone?

+4
source share
2 answers

EarthTools has a web service for this.

http://www.earthtools.org/webservices.htm#timezone

You can walk in latitude and longitude as follows:

h ttp: //www.earthtools.org/timezone/40.71417/-74.00639

And he spills out the time zone and a bunch of other information:

<?xml version="1.0" encoding="ISO-8859-1" ?> <timezone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.earthtools.org/timezone.xsd"> <version>1.1</version> <location> <latitude>40.71417</latitude> <longitude>-74.00639</longitude> </location> <offset>-5</offset> <suffix>R</suffix> <localtime>4 Dec 2005 12:06:56</localtime> <isotime>2005-12-04 12:06:56 -0500</isotime> <utctime>2005-12-04 17:06:56</utctime> <dst>False</dst> </timezone> 
+3
source

If the external dependency is not perfect (obviously, this is brilliant for a client-side geographic location).

Then I recommend reading the answer to this question.

The easiest way to convert lat lng / zip / city / state to Timezone in Ruby

0
source

Source: https://habr.com/ru/post/1335242/


All Articles