Lane

class py123d.datatypes.map_objects.Lane[source]

Class representing a lane in a map.

Public Data Attributes:

layer

The MapLayer of the map object.

lane_group_id

ID of the lane group this lane belongs to.

lane_group

The LaneGroup this lane belongs to.

left_boundary

The left boundary of the lane as a Polyline3D.

right_boundary

The right boundary of the lane as a Polyline3D.

centerline

The centerline of the lane as a Polyline3D.

left_lane_id

ID of the left neighboring lane.

left_lane

The left neighboring Lane, if available.

right_lane_id

ID of the right neighboring lane.

right_lane

The right neighboring Lane, if available.

predecessor_ids

List of IDs of the predecessor lanes.

predecessors

List of predecessor Lane instances.

successor_ids

List of IDs of the successor lanes.

successors

List of successor Lane instances.

speed_limit_mps

The speed limit of the lane in meters per second.

trimesh_mesh

The trimesh mesh representation of the lane.

Inherited from BaseMapSurfaceObject

outline

The outline of the surface as either Polyline2D or Polyline3D.

outline_2d

The outline of the surface as Polyline2D.

outline_3d

The outline of the surface as Polyline3D (zero-padded to 3D if necessary).

shapely_polygon

The shapely polygon of the surface.

trimesh_mesh

The trimesh mesh representation of the surface.

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 lane_group_id: str | int

ID of the lane group this lane belongs to.

property lane_group: LaneGroup | None

The LaneGroup this lane belongs to.

property left_boundary: Polyline3D

The left boundary of the lane as a Polyline3D.

property right_boundary: Polyline3D

The right boundary of the lane as a Polyline3D.

property centerline: Polyline3D

The centerline of the lane as a Polyline3D.

property left_lane_id: str | int | None

ID of the left neighboring lane.

property left_lane: Lane | None

The left neighboring Lane, if available.

property right_lane_id: str | int | None

ID of the right neighboring lane.

property right_lane: Lane | None

The right neighboring Lane, if available.

property predecessor_ids: List[str | int]

List of IDs of the predecessor lanes.

property predecessors: List[Lane] | None

List of predecessor Lane instances.

property successor_ids: List[str | int]

List of IDs of the successor lanes.

property successors: List[Lane] | None

List of successor Lane instances.

property speed_limit_mps: float | None

The speed limit of the lane in meters per second.

property trimesh_mesh: Trimesh

The trimesh mesh representation of the lane.

property object_id: str | int

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

property outline: Polyline2D | Polyline3D

The outline of the surface as either Polyline2D or Polyline3D.

property outline_2d: Polyline2D

The outline of the surface as Polyline2D.

property outline_3d: Polyline3D

The outline of the surface as Polyline3D (zero-padded to 3D if necessary).

property shapely_polygon: Polygon

The shapely polygon of the surface.