Stop Zone

class py123d.datatypes.StopZone[source]

Class representing a stop zone in a map.

Public Data Attributes:

layer

The MapLayer of the map object.

stop_zone_type

The type of the stop zone.

lane_ids

List of lane IDs this stop zone controls.

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 stop_zone_type: StopZoneType

The type of the stop zone.

property lane_ids: List[str | int]

List of lane IDs this stop zone controls.

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.

property trimesh_mesh: Trimesh

The trimesh mesh representation of the surface.

class py123d.datatypes.StopZoneType[source]

Enum for different stop zone types.

UNKNOWN = 0

Unknown stop zone type.

TRAFFIC_LIGHT = 1

Stop zone controlled by a traffic light.

STOP_SIGN = 2

Stop zone controlled by a stop sign.

YIELD_SIGN = 3

Stop zone controlled by a yield sign.

PEDESTRIAN_CROSSING = 4

Stop zone controlled by a pedestrian crossing.

TURN_STOP = 5

Stop zone for turning vehicles.