All Projects → agap → llttz

agap / llttz

Licence: MIT license
The easy way to get java TimeZone from latitude/longitude

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects

Projects that are alternatives of or similar to llttz

Positional
An elegant and colorful location information app for Android with Compass, Clock, Level, Sun, Moon, Trail Marker and many other features.
Stars: ✭ 72 (+166.67%)
Mutual labels:  timezone, latitude, longitude
pikaz-location
定位插件(限中国)
Stars: ✭ 78 (+188.89%)
Mutual labels:  location, latitude, longitude
Seeker
Accurately Locate Smartphones using Social Engineering
Stars: ✭ 2,772 (+10166.67%)
Mutual labels:  latitude, longitude
orange3-geo
🍊 🌍 Orange add-on for dealing with geography and geo-location
Stars: ✭ 22 (-18.52%)
Mutual labels:  location, latitude
TimeZoneLocate
Time zone for locations offline in Swift (iOS).
Stars: ✭ 30 (+11.11%)
Mutual labels:  timezone, location
beihu-geo
地理位置解析服务,可供爬虫使用!供参考学习!
Stars: ✭ 16 (-40.74%)
Mutual labels:  latitude, longitude
Solar-Calculator
Calculates the sunrise and sunset for a given date and location (using GEO coordinates). This library uses the method outlined NOAA Solar Calculations Day spreadsheet found at http://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html.
Stars: ✭ 36 (+33.33%)
Mutual labels:  latitude, longitude
jqIpLocation
jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format
Stars: ✭ 18 (-33.33%)
Mutual labels:  location, latitude
PHPCoord
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points
Stars: ✭ 78 (+188.89%)
Mutual labels:  latitude, longitude
Timezonefinder
fast python package for finding the timezone of any point on earth (coordinates) offline
Stars: ✭ 242 (+796.3%)
Mutual labels:  timezone, location
Googleapi
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Stars: ✭ 346 (+1181.48%)
Mutual labels:  timezone, location
php-haversine-formula
Calculates de distance between two geocode points 📌🗺
Stars: ✭ 44 (+62.96%)
Mutual labels:  latitude, longitude
Vincenty-Excel
Thaddeus Vincenty's Direct and Inverse formulae for geodesic calculations in Excel (distance, azimuth, latitude, longitude).
Stars: ✭ 29 (+7.41%)
Mutual labels:  latitude, longitude
geolocation-php-api
This Geolocation PHP class connects to Google Maps API to find latitude/longitude or the address.
Stars: ✭ 71 (+162.96%)
Mutual labels:  latitude, longitude
Open Location Code
Open Location Code is a library to generate short codes, called "plus codes", that can be used as digital addresses where street addresses don't exist.
Stars: ✭ 3,567 (+13111.11%)
Mutual labels:  latitude, longitude
laravel-geoly
Perform fast and efficient radius searches on your Laravel Eloquent models.
Stars: ✭ 25 (-7.41%)
Mutual labels:  latitude, longitude
haversine-js
JavaScript implementation of the Haversine formula
Stars: ✭ 12 (-55.56%)
Mutual labels:  latitude, longitude
react-cartographer
Generic component for displaying Yahoo / Google / Bing maps.
Stars: ✭ 82 (+203.7%)
Mutual labels:  latitude, longitude
simple-location
Adds Basic Location Support to Wordpress
Stars: ✭ 26 (-3.7%)
Mutual labels:  timezone, location
ctt
ctt postal codes into MySQL with latitude and longitude from google
Stars: ✭ 33 (+22.22%)
Mutual labels:  latitude, longitude

What llttz is?

llttz (stands for latitude longitude to time zone) is a light-weight project written in Java which allows you to obtain the time zone in a place with specified latitude and longitude. Original idea (along with the dataset) was taken from the APTimezones project. To obtain the TimeZone you need to create an object of Converter class, and invoke its getInstance(double lat, double lon) method, like so:

IConverter iconv = Converter.getInstance(TimeZoneListStore.class);
TimeZone tz = iconv.getTimeZone(53.5233333, 49.4125);

Here TimeZoneListStore is a class which holds a list of timezones. The time complexity of nearest neighbor search is O(n) in that case. There is also another class, named TimeZoneTreeStore, which you can use to perform nearest neighbor searches. It holds a simple implementation of k-d tree which can perform nearest neighbor lookup with the time complexity of 0(ln(n)) in the best case (it's a little bit unstable and returns wrong timezones when we perform searches in the areas which are located near the South or North Pole so you can stick to TimeZoneListStore for now).

I see that you're using a list of timezones here instead of the list of timezones' polygones. The calculated time zone won't be precise, right?

Yes, in some cases you can get the error in +\- 2 hours.

Is it useful then?

It depends. In my case I needed library which could allow me to calculate the time zone by provided latitude/longitude without making requests to remote web-services, such as GeoNames. I also needed this library to be a light-weight (I had to use it on Android devices) and preciseness in calculations wasn't the mandatory requirement.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].