Skip to main content

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

Hi Rohan,

there is traci.parkingarea.getVehicleIDs to identify the parking vehicle, for which you can query stop information using traci.vehicle.getStops . The first item of the result data structure contains information about the remaining duration.

Best regards,
Mirko

Am 15.09.2025 um 12:45 schrieb Rohan Verma via sumo-user:
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


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top