WayAnalyzer

Trait WayAnalyzer 

Source
pub trait WayAnalyzer<T> {
    type WayProperties;

    // Required methods
    fn analyze_way_tags(
        &self,
        tags: &Tags,
    ) -> Result<Option<Self::WayProperties>, Error>;
    fn way_edge_properties(
        &self,
        edge: H3DirectedEdge,
        way_properties: &Self::WayProperties,
    ) -> Result<EdgeProperties<T>, Error>;
}

Required Associated Types§

Required Methods§

Source

fn analyze_way_tags( &self, tags: &Tags, ) -> Result<Option<Self::WayProperties>, Error>

analyze the tags of an Way and return Some when this way should be used

Source

fn way_edge_properties( &self, edge: H3DirectedEdge, way_properties: &Self::WayProperties, ) -> Result<EdgeProperties<T>, Error>

return the weight for a single H3Edge

Implementors§