mappymatch.matchers.line_snap#
Classes
|
A crude (but fast) map matcher that just snaps points to the nearest road network link. |
- class mappymatch.matchers.line_snap.LineSnapMatcher(road_map)[source]#
A crude (but fast) map matcher that just snaps points to the nearest road network link.
- Attributes:
map: The map to match against
- Parameters:
road_map (MapInterface)
- match_trace(trace)[source]#
Take in a trace of gps points and return a list of matching link ids
- Return type:
- Parameters:
trace (Trace)
- Args:
trace: The trace to match
- Returns:
A list of Match objects
- match_trace_batch(trace_batch)[source]#
Take in a batch of traces and return a batch of matching link ids
- Return type:
List
[MatchResult
]- Parameters:
trace_batch (List[Trace])
- Args:
trace_batch: The batch of traces to match
- Returns:
A batch of Match objects