Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Sumo - parking areas and occupancy

Hello,
1) There is currently no function for that. You'll have to read the xml files
2) This is possible in the very latest development version (v0_31_0-1242-g77877a7). See http://sumo.dlr.de/wiki/Simulation/ParkingArea#TraCI

regards,
Jakob

2017-11-20 22:05 GMT+01:00 Xavier Paul Lister Lavenir <xlavenir@xxxxxxx>:

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


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top