mappymatch.matchers.matcher_interface#

Classes

MatcherInterface()

Abstract base class for a Matcher

class mappymatch.matchers.matcher_interface.MatcherInterface[source]#

Abstract base class for a Matcher

abstract match_trace(trace)[source]#

Take in a trace of gps points and return a list of matching link ids

Return type:

MatchResult

Parameters:

trace (Trace)

Args:

trace: The trace to match

Returns:

A list of Match objects

abstract 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