Python libraries for SUMO
You can generate random traffic using network.net.xml file (road network)
python randomTrips.py -n network.net.xml -r test.rou.xml
od2trips -c od2trips.config.xml -n taz_file.taz.xml -d od_file.od
duarouter -c duarcfg.xml -o od.rou.xml
<configuration>
<input>
<net-file value="network.net.xml"/>
<route-files value="od_file.odtrips.xml"/>
</input>
<output>
<output-file value="od_route_file.odtrips.rou.xml"/>
</output>
</configuration>
<additional>
<tazs>
<taz id="0" edges="5734659#2"/>
<taz id="1" edges="-86576561#0"/>
<taz id="2" edges="-232561761#5"/>
<taz id="3" edges="-4854559#3"/>
<taz id="4" edges="-5211772#2"/>
</tazs>
</additional>
TAZ settings using netedit