mappymatch.constructs.match#
Classes
|
Represents a match made by a Matcher |
- class mappymatch.constructs.match.Match(road: Road | None, coordinate: Coordinate, distance: float)[source]#
Represents a match made by a Matcher
- Attributes:
road: The road that was matched; None if no road was found; coordinate: The original coordinate that was matched; distance: The distance to the matched road; If no road was found, this is infinite
- Parameters:
road (Road | None)
coordinate (Coordinate)
distance (float)
-
coordinate:
Coordinate
# Alias for field number 1
-
distance:
float
# Alias for field number 2
- set_coordinate(c)[source]#
Set the coordinate of this match
- Args:
c: The new coordinate
- Returns:
The match with the new coordinate
- Parameters:
c (Coordinate)