git clone https://github.com/shippeo/timezoneFinder.git && cd timezoneFinder
npm i
npm start
- Only two mandatory parameters :
lat
andlon
- Decimal separator : comma or dot
examples :
http://(host):8080/?lat=3,2343&lon=22,22
http://(host):8080/?lat=3.2343&lon=22.22
{
"lat": 3.2343,
"lon": 22.22,
"timezone": "Africa/Kinshasa"
}
- Return
"timezone": "null"
if no timezone can be determine at coordinates - Return HTTP error 400 for invalid input
Europe/Paris => http://(host):8080/?lat=50.286&lon=4.165
Europe/Brussels => http://(host):8080/?lat=50.286&lon=4.171
timezoneFinder is based on :