Crate rtzlib

Source
Expand description

A tool to easily work with timezone lookups.

§Examples

use rtzlib::NedTimezone;
use rtzlib::CanPerformGeoLookup;

// Query a time zone for a given `(lng,lat)`.
assert_eq!(
    NedTimezone::lookup(-121., 46.)[0]
        .identifier
        .as_ref()
        .unwrap(),
    "America/Los_Angeles"
);

Re-exports§

pub use crate::geo::shared::CanPerformGeoLookup;

Modules§

geo
The geo module contains the geo lookup functionality.
shared
Shared functionality for the rtz crate.

Structs§

NedTimezone
A representation of the Natural Earth Data geojson geojson::Features.
OsmAdmin
A representation of the OpenStreetMap geojson geojson::Features for administrative areas.
OsmTimezone
A representation of the OpenStreetMap geojson geojson::Features.