Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Retrieving remaining time at parking stops via TraCI

Dear community,

I am currently working with parking areas in SUMO and using TraCI to monitor occupancy. For example, I use:

traci.parkingarea.getVehicleCount(parkingAreaID)

Since my parking spaces are configured with a capacity of 1, I can easily check if the spot is empty (0) or occupied (1).

What I would like to know is whether there is a way to obtain additional timing information about the parked vehicle. Specifically:

  • If a vehicle is occupying the parking space, can I query how much time remains for its parking stop to finish?

  • Alternatively, can I query how much time the vehicle has already spent at that stop?

I went through the TraCI documentation but could not find a direct function for this. Before I consider workarounds, I wanted to ask if there is a direct way to access this information through TraCI or another recommended approach.

Thank you very much for your help!

Kind regards,
Rohan


Back to the top