_LaneStop

Module Contents

Classes

LaneStop

class _LaneStop.LaneStop(lane: trasmapy.network._Lane.Lane, endPos: float = 0, startPos: float = INVALID_DOUBLE_VALUE)

Bases: trasmapy.network._Stop.Stop

property laneIndex: int

The lane index to stop at. Traci uses the pair (edge ID, lane index) for lane stops (instead of lane ID). There isn’t a way to get the index of a lane in traci. As such, we use the index of the order at which lanes are found. If a user wants to, it is possible to define lanes’ indexes, in the simulation’s XML files, in an order that doesn’t match their positions in the lane. If this happens, the lane index used for the stop can match with a different lane (in the same edge).

property lane: trasmapy.network._Lane.Lane
property startPos: float
property endPos: float
stopType :trasmapy.users.StopType.StopType