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.
- Zone
Lookup - Matching zones and safezone from a database lookup.
- Zone
Match - Zone retrieved from the database, along with the type of result.
Enums§
- Error
- String
Parse Error - Table
Type - Database type.
- Zone
Match Kind