Timezones API
Timezones are weird, they zigzag all over the place and change like crazy.
This is what I use to figure out timezones based on longitude and latitude.
This is what I use to figure out timezones based on longitude and latitude.
API
URL:/api/timezones
Method:
GET
Parameters:
Name | Type | Description |
---|---|---|
x | float |
Longitude |
y | float |
Latitude |
Returns:
JSON
Example:
$ curl https://jerrysv.xyz/api/timezone?x=-122.6968217&y=45.5163503
{
"status": "ok",
"timezone": "America/Los_Angeles",
"adjust": "-07:00",
"time": "2021-06-06T20:30:55-07:00"
}