Uses old Rust 2015
|0.1.1||Apr 24, 2015|
|0.1.0||Apr 9, 2015|
#7 in #position
266 downloads per month
Map a latitude/longitude point to the timezone it lies in.
This is a direct port of bradfitz/latlong.
Compute timezones of points on the Earth.
This is a direct port of bradfitz/latlong, and hence the same bonuses/caveats apply:
It tries to have a small binary size (~360 KB), low memory footprint (~1 MB), and incredibly fast lookups (~0.5 microseconds). It does not try to be perfectly accurate when very close to borders.
Add the following to your
[dependencies] tz-search = "0.1"
assert_eq!(tz_search::lookup(-33.79, 151.17).unwrap(), "Australia/Sydney"); // in the ocean assert_eq!(tz_search::lookup(0.0, 0.0), None);