[][src]Struct osmptparser::Relation

pub struct Relation {
    pub id: u64,
    pub tags: HashMap<String, String>,
    pub info: HashMap<String, String>,
    pub ways: Vec<Way>,
    pub stops: Vec<Node>,
}

OSM relation representation with all the relevant osm data (tags and ids of relation and all ways and nodes)

Fields

id: u64tags: HashMap<String, String>info: HashMap<String, String>ways: Vec<Way>stops: Vec<Node>

Implementations

impl Relation[src]

pub fn flatten_ways(
    &self,
    tolerance: f64
) -> Result<(Vec<Vec<Node>>, ParseStatus), ()>
[src]

best effort get a linestring or multilinestring from all the ways that compose this relation if tolerance is > 0, then it also join gaps in the ways into one linestring when possible tolerance is in meters

Trait Implementations

impl Clone for Relation[src]

impl Debug for Relation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.