Service to provide timezone names for given latitude and longitude based on ESRI shapefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
src/de/kompf/tzdata
test/de/kompf/tzdata
.classpath
.gitignore
.project
LICENSE.md
README.md
build.xml
ivy.xml
ivysettings.xml

README.md

tzdataservice

Java program and service to provide timezone names for given latitude and longitude based on data from an ESRI shapefile.

prerequisites

building

    ant package

running the service

    java -jar tzdataservice.jar /path/to/tz_world.shp

querying the REST service

E.g. with curl:

    curl http://localhost:28100/tz/bylonlat/9/50

More information

The blog post Determine time zone with GeoTools from shapefiles explains the background and implementation of the program. It is also available in German language: Zeitzone mit Geotools aus Shapefiles bestimmen.

License

Copyright 2015, 2017 Martin Kompf

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.