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)

Also, you cannot retrieve startPos via TraCI. I recommend parsing the xml
file instead. (eg. using function parse(), see
https://sumo.dlr.de/wiki/Tools/Sumolib#compute_the_average_and_median_edge_speed_in_a_plain_xml_edge_file
).

regards,
Jakob

Am Do., 22. Aug. 2019 um 12:21 Uhr schrieb Paolo Bolzoni <
[email protected]>:

> Dear list,
>
> I am fairly sure I am missing the obvious, but in the scenario I am
> building I have containerStops and parkingAreas in an additional file.
> (So loaded with additional-files in the sumocfg file)
>
> I set up to python and traci can control the simulation, so given the
> ids how can I from retrieve the lane and startPos?
> I guess I can parse the .xml file, but I'd prefer to do it via traci.
>
> Yours faithfully,
> Paolo
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to