Skip to content

Find the timezone, country, ... for a given latitude and longitude

Notifications You must be signed in to change notification settings

uav4geo/ZoneDetect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZoneDetect

This is a C library that allows you to find an area a point belongs to using a database file. A typical example would be looking up the country or timezone given a latitude and longitude. The timezone database also contains the country information.

The API should be self-explanatory from zonedetect.h. A small demo is included (demo.c)

The databases are obtained from here and converted to the format used by this library.

Online API

You can test the library using an online API: https://api.bertold.org/geozone It takes the following GET parameters:

  • lat: Latitude.
  • lon: Longitude.
  • c: Set to one (c=1) to produce compact JSON.

For example: https://api.bertold.org/geozone?lat=51&lon=5
You are free to use this API for any application, but I am not responsible for the quality of service. Please contact me if your application requires reliability.

Demo

An online demo is available here: https://api-public.bertold.org/demo/geozone.html. Simple click anywhere on the map and see the result of the query.

About

Find the timezone, country, ... for a given latitude and longitude

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 42.7%
  • C++ 33.7%
  • Objective-C 15.6%
  • Shell 3.6%
  • Makefile 2.3%
  • JavaScript 1.6%
  • Python 0.5%