Skip to content

skaringa/tzdataservice

Repository files navigation

tzdataservice

Java web 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/combined-shapefile-with-oceans.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, 2022 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/.

About

Service to provide timezone names for given latitude and longitude based on ESRI shapefile

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages