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§
type WayProperties
Required Methods§
analyze the tags of an Way and return Some when this way should be used
Sourcefn way_edge_properties(
&self,
edge: H3DirectedEdge,
way_properties: &Self::WayProperties,
) -> Result<EdgeProperties<T>, Error>
fn way_edge_properties( &self, edge: H3DirectedEdge, way_properties: &Self::WayProperties, ) -> Result<EdgeProperties<T>, Error>
return the weight for a single H3Edge