diff --git a/README.md b/README.md index 163a07a..47b12c9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # 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. +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) -In the future (after cleanup) I will also commit the program used to convert shapefiles to the binary database files, a merged country+timezone file and an automated testsuite. +In the future (after cleanup) I will also commit the program used to convert shapefiles to the binary database files and an automated testsuite. ### Online API You can test the library using an online API: [https://api.bertold.org/geozone](https://api.bertold.org/geozone) @@ -16,4 +16,4 @@ It takes the following GET parameters: For example: [https://api.bertold.org/geozone?lat=51&lon=5](https://api.bertold.org/geozone?lat=51&lon=5) Please do not use this API in an application that will result in a lot of server load :) - \ No newline at end of file + diff --git a/database/country16.bin b/database/country16.bin index 7a633f6..0aa8dbc 100644 Binary files a/database/country16.bin and b/database/country16.bin differ diff --git a/database/country21.bin b/database/country21.bin new file mode 100644 index 0000000..9e6ba5e Binary files /dev/null and b/database/country21.bin differ diff --git a/database/country24.bin b/database/country24.bin deleted file mode 100644 index b637346..0000000 Binary files a/database/country24.bin and /dev/null differ diff --git a/database/timezone16.bin b/database/timezone16.bin index 64c1902..2e8cd41 100644 Binary files a/database/timezone16.bin and b/database/timezone16.bin differ diff --git a/database/timezone24.bin b/database/timezone21.bin similarity index 50% rename from database/timezone24.bin rename to database/timezone21.bin index 1e84468..02b6645 100644 Binary files a/database/timezone24.bin and b/database/timezone21.bin differ