Crate zone_detect

Source
Expand description

Example:

let database = zone_detect::Database::open("data/timezone21.bin")
    .expect("failed to open database");
let s = database.simple_lookup(zone_detect::Location {
    latitude: 35.0715,
    longitude: -82.5216,
}).unwrap();
assert_eq!(s, "America/New_York");

Structs§

Database
Zone database.
Location
Latitude and longitude.
Zone
Zone retrieved from the database.
ZoneLookup
Matching zones and safezone from a database lookup.
ZoneMatch
Zone retrieved from the database, along with the type of result.

Enums§

Error
StringParseError
TableType
Database type.
ZoneMatchKind

Type Aliases§

Result