Lane Group

class py123d.datatypes.map_objects.LaneGroup[source]

Class representing a group of lanes going in the same direction.

Public Data Attributes:

layer

The MapLayer of the map object.

lane_ids

List of IDs of the lanes in the group.

lanes

List of Lane instances in the group.

left_boundary

The left boundary of the lane group.

right_boundary

The right boundary of the lane group.

intersection_id

ID of the intersection the lane group belongs to, if available.

intersection

The Intersection the lane group belongs to, if available.

predecessor_ids

List of IDs of the predecessor lane groups.

predecessors

List of predecessor LaneGroup instances.

successor_ids

List of IDs of the successor lane groups.

successors

List of successor LaneGroup instances.

trimesh_mesh

The trimesh mesh representation of the lane group.

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_ids: List[str | int]

List of IDs of the lanes in the group.

property lanes: List[Lane]

List of Lane instances in the group.

property left_boundary: Polyline3D

The left boundary of the lane group.

property right_boundary: Polyline3D

The right boundary of the lane group.

property intersection_id: str | int | None

ID of the intersection the lane group belongs to, if available.

property intersection: Intersection | None

The Intersection the lane group belongs to, if available.

property predecessor_ids: List[str | int]

List of IDs of the predecessor lane groups.

property predecessors: List[LaneGroup]

List of predecessor LaneGroup instances.

property successor_ids: List[str | int]

List of IDs of the successor lane groups.

property successors: List[LaneGroup]

List of successor LaneGroup instances.

property trimesh_mesh: Trimesh

The trimesh mesh representation of the lane group.

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.