Road Edge

class py123d.datatypes.map_objects.RoadEdge[source]

Class representing a road edge in a map.

Public Data Attributes:

layer

The MapLayer of the map object.

road_edge_type

The type of road edge, according to RoadEdgeType.

Inherited from BaseMapLineObject

polyline

The polyline representation, either Polyline2D or Polyline3D.

polyline_2d

The polyline representation as Polyline2D.

polyline_3d

The polyline representation as Polyline3D (zero-padded to 3D if necessary).

shapely_linestring

The shapely LineString representation of the polyline.

Inherited from BaseMapObject

object_id

The unique identifier of the map object (unique within a map layer).

layer

The MapLayer of the map object.


property layer: MapLayer

The MapLayer of 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.