E
E
Eugene2020-01-12 12:18:31
JavaScript
Eugene, 2020-01-12 12:18:31

In google maps for sites, is there such a map that shows the time zone and coordinates when searching for a city?

You need to display the coordinates and also the time zone, to search for the city.
Google has documentation about timezone api
Request:

https://maps.googleapis.com/maps/api/timezone/json?location=38.908133,-77.047119&timestamp=1458000000&key=YOUR_API_KEY

Answer:
{
   "dstOffset" : 3600,
   "rawOffset" : -18000,
   "status" : "OK",
   "timeZoneId" : "America/New_York",
   "timeZoneName" : "Eastern Daylight Time"
}

I don't understand how it can be used. An incomprehensible request, as if only for a specific place and an incomprehensible answer, where, for example, New_York - (UTC -5)
is not indicated city ​​and displayed the longitude latitude and time zone of this city?
Earlier dadata.ru was advised, yes it works, but you can get coordinates there, and the time zone is only on the maximum tariff for 28 tr. a year, but that doesn't work for me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-01-12
@cyber-jet

"rawOffset" : -18000 doesn't mean anything to you? This is the difference from UTC in seconds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question