Road Edge¶
- class py123d.datatypes.map_objects.RoadEdge[source]¶
Class representing a road edge in a map.
Public Data Attributes:
layerThe
MapLayerof the map object.road_edge_typeThe type of road edge, according to
RoadEdgeType.Inherited from
BaseMapLineObjectpolylineThe polyline representation, either
Polyline2DorPolyline3D.polyline_2dThe polyline representation as
Polyline2D.polyline_3dThe polyline representation as
Polyline3D(zero-padded to 3D if necessary).shapely_linestringThe shapely LineString representation of the polyline.
Inherited from
BaseMapObjectobject_idThe unique identifier of the map object (unique within a map layer).
layerThe
MapLayerof the map object.
- property road_edge_type: RoadEdgeType¶
The type of road edge, according to
RoadEdgeType.
- class py123d.datatypes.map_objects.RoadEdgeType[source]¶
Enum for different road edge types.
Notes
The road edge types follow the Waymo specification [1].
References
- UNKNOWN = 0¶
Unknown road edge type.
- ROAD_EDGE_BOUNDARY = 1¶
Physical road boundary that doesn’t have traffic on the other side.
- ROAD_EDGE_MEDIAN = 2¶
Physical road boundary that separates the car from other traffic.