Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Get lane and startPos from id using python

On Thu, Aug 22, 2019 at 11:43 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
>
> You can retrieve the lane id using
> traci.simulation.getParameter(parkingAreaID, "parkingArea.lane")
> see https://sumo.dlr.de/wiki/TraCI/Simulation_Value_Retrieval#Generic_Parameter_Retrieval_0x7e
> However, that doesn't even work for containerStops (only busStops)

Assuming the variable myLane contains a lane id, it is correct in
general to use:
        myLane[:myLane.rfind('_')]
to get its edge id?


Back to the top