pub struct MapModel {
pub matching_type: MatchingType,
pub spatial_index: SpatialIndex,
pub geometry: Vec<GeometryModel>,
pub queries_without_destinations: bool,
pub config: MapModelConfig,
}Fields§
§matching_type: MatchingTypeway in which map matching is attempted
spatial_index: SpatialIndexindex used during map matching
geometry: Vec<GeometryModel>collection of geometries associated with the graph edge lists
queries_without_destinations: boolallow for queries without a destination location, such as when generating shortest path trees or isochrones.
config: MapModelConfigthe configuration used to create this map model
Implementations§
Source§impl MapModel
impl MapModel
pub fn new( graph: Arc<Graph>, config: MapModelConfig, ) -> Result<MapModel, MapError>
pub fn get_linestring<'a>( &'a self, edge_list_id: &EdgeListId, edge_id: &EdgeId, ) -> Result<&'a LineString<f32>, MapError>
pub fn map_match( &self, query: &mut Value, si: &SearchInstance, ) -> Result<(), MapError>
Auto Trait Implementations§
impl Freeze for MapModel
impl RefUnwindSafe for MapModel
impl Send for MapModel
impl Sync for MapModel
impl Unpin for MapModel
impl UnsafeUnpin for MapModel
impl UnwindSafe for MapModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more