mappymatch.constructs.road#
Classes
- class mappymatch.constructs.road.RoadId(start, end, key)[source]#
- Parameters:
start (int | str | None)
end (int | str | None)
key (int | str | None)
-
start:
Union
[int
,str
,None
]# Alias for field number 0
-
end:
Union
[int
,str
,None
]# Alias for field number 1
-
key:
Union
[int
,str
,None
]# Alias for field number 2
- class mappymatch.constructs.road.Road(road_id: RoadId, geom: LineString, metadata: dict | None = None)[source]#
Represents a road that can be matched to;
- Attributes:
road_id: The unique identifier for this road geom: The geometry of this road origin_junction_id: The unique identifier of the origin junction of this road destination_junction_id: The unique identifier of the destination junction of this road metadata: an optional dictionary for storing additional metadata
- Parameters:
road_id (RoadId)
geom (LineString)
metadata (dict | None)
-
geom:
LineString
# Alias for field number 1
-
metadata:
Optional
[dict
]# Alias for field number 2