Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Find timezone of a gps coordinate based on geo-tz node module

Notifications You must be signed in to change notification settings

shippeo/shippeo.timezoneFinder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

timezoneFinder

How to run it

git clone https://github.com/shippeo/timezoneFinder.git && cd timezoneFinder
npm i
npm start

Request format

  • Only two mandatory parameters : lat and lon
  • Decimal separator : comma or dot

examples :

  • http://(host):8080/?lat=3,2343&lon=22,22
  • http://(host):8080/?lat=3.2343&lon=22.22

Response format

{
  "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

coordinates examples

France

Europe/Paris => http://(host):8080/?lat=50.286&lon=4.165

Belgium

Europe/Brussels => http://(host):8080/?lat=50.286&lon=4.171

Dependencies

timezoneFinder is based on :

About

Find timezone of a gps coordinate based on geo-tz node module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%