Dear Sumo Community,
I am dynamically re-routing a certain vehicle around the network based on randomly generated demand. I would like park this vehicle either on road-side parking (if available) or in the middle of the street near this randomly
generated point in the network.
I would first like to identify the road-side parking spots near the destination and then reroute the vehicle to one of these spots. As the vehicle approaches the destination, I would like to check that there is space
for a vehicle to park in one of these road-side parking spots (the occupancy). I am using TraCI (python) to conduct all of this.
I have two questions:
1)
Is it possible to check the nearest parking areas to a certain position? Or even access a list of these? (using traci)
a.
I can always just write my own function by loading the parking areas from the xml file
2)
Is it possible to check the occupancy of the parking area so if no spots are immediately available, I just park in the middle of the road?
I really appreciate your help. I couldn’t find any information on the docs or in the TraCI/Sumolib libraries to access this information.
Kind regards,
Xavier Lavenir