Article directory
First give the official website tutorial:
https://sumo.dlr.de/docs/Tutorials/OSMWebWizard.html
1. Run the CMD command line
code:
- First enter the osmWebWizard.py file address
cd /d D:\SUMO\sumo-1.17.0\tools(替换成自己的sumo\tools地址)
- Then run the py file with python
python osmWebWizard.py
2. Enter OSM to select the map location
Need to open the Internet.
- Find the desired geographic location by zooming the mouse;
- Check all options;
- Check the red box on the right and select the size of the map to be captured.
- Choose a shipping method.
Through Traffic Factor: The larger the value, the more vehicles leave and reach the boundary of the simulation area, corresponding to the scene with more traffic flow.
Count: This parameter defines the number of vehicles and lane kilometers generated per hour.
- Select a road type.
- When all the steps are completed, go back to the settings page and click ""Genertate Scenario".
7. After the map is generated, the system will automatically import the generated file into SUMO-gui and open it.
- Click start to run the simulation, and finally generate a file in the file: trips.trips.xml is the operation data of various transportation tools.
The file can be opened with Visual Studio Code.