Dear Community,
I am currently working on assigning parking area stops using TraCI via the following command:
traci.vehicle.rerouteParkingArea(veh_id, park_id)
However, when the designated parking area lies downstream from the vehicle’s current route, this command results in an error. My intention is to reroute the vehicle so it can reach the specified parking space—potentially by performing a U-turn at the next junction (if permitted) or by identifying the shortest-loop path that leads back to the parking area.
Despite several attempts, I have not been able to implement a reliable solution. My network contains both bidirectional and unidirectional edges, which makes determining a feasible workaround particularly challenging.
Could anyone please advise on how to properly assign parking stops that are located downstream of a vehicle’s current route? Any guidance or examples would be greatly appreciated.
Thank you in advance for your support.
Kind regards,
Rohan
_______________________________________________