This repository deploys LatLongToTimezone to Maven
Tests are run against a file from geonames.org referenced in this SO question
If at least 95% of the test cases succeed, the build passes. Last checked was 98%. Visit travis to see logs for test failures
-
Add the maven dependency to your project
<dependency> <groupId>com.moodysalem</groupId> <artifactId>LatLongToTimezoneMaven</artifactId> <version>{see-above-for-version!}</version> </dependency>
-
Call the static methods on the TimezoneMapper class
TimezoneMapper.tzNameAt(double lat, double lng);