Struct cosmogony::zone::Zone[][src]

pub struct Zone {
    pub id: ZoneIndex,
    pub osm_id: String,
    pub admin_level: Option<u32>,
    pub zone_type: Option<ZoneType>,
    pub name: String,
    pub label: String,
    pub international_labels: BTreeMap<String, String>,
    pub zip_codes: Vec<String>,
    pub center: Option<Point<f64>>,
    pub boundary: Option<MultiPolygon<f64>>,
    pub bbox: Option<Bbox<f64>>,
    pub tags: Tags,
    pub center_tags: Tags,
    pub parent: Option<ZoneIndex>,
    pub wikidata: Option<String>,
    // some fields omitted
}

Fields

Methods

impl Zone
[src]

Important traits for HierarchyIterator<'a>

iter_hierarchy gives an iterator over the whole hierachy including self

compute a nice human readable label The label carries the hierarchy of a zone.

This label is inspired from opencage formatting

and from the mimirsbrunn zip code formatting

example of zone's label: Paris (75000-75116), Île-de-France, France

We compute a default label, and a label per language Note: for the moment we use the same format for every language, but in the future we might use opencage's configuration for this

Trait Implementations

impl Debug for Zone
[src]

Formats the value using the given formatter. Read more

impl Clone for Zone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Zone

impl Sync for Zone