1. Buka website Open Stree Map berikut ini, http://www.openstreetmap.org
2. Pilih area yang ingin disimulasikan, lalu klik export, hasil map yang di export akan bertipe .osm
3. Masukkan kode berikut ke terminal :
$] netconvert --osm-files file-export.osm -o guindy.net.xml
4. Copy file osmPolyconvert.typ.xml dari directory SUMO ($SUMO_HOME/data/typemap/) dan paste ke folder yang berisikan file map tersebut
5. Masukkan kode berikut :
$] polyconvert --osm-files guindy.osm --net-file guindy.net.xml --type-file osmPolyconvert.typ.xml -o guindy.poly.xml
6. Buat File dengan tipe namafile.sumo.cfg pada folder yang sama dan masukkan kode berikut :
<configuration>
<input>
<net-file value="guindy.net.xml"/>
<route-files value="guindy.rou.xml"/>
<additional-files value="guindy.poly.xml"/>
</input>
<time>
<begin value="0"/>
<end value="100"/>
<step-length value="0.1"/>
</time>
</configuration>
7.Jalankan file SUMO menggunakan terminal :
$]sumo-gui guindy.sumo.cfg
Exporting To NS2
Buka terminal jalan command ini :
$] sumo -c guindy.sumo.cfg --fcd-output guindy.sumo.xml
$] python /usr/local/src/sumo-0.26. 0/tools/traceExporter.py --fcd-input guindy.sumo.xml --ns2config-output guindy.tcl --ns2activity-output activity.tcl --ns2mobility-output mobility.tcl
Referensi :
Pradeepkumar TS. SUMO, Open Street Maps and NS2 - A Real Traffic Simulation. [Online]. Tersedia:http://www.nsnam.com/2016/06/sumo-open-street-maps-and-ns2-real.html?m=1 [2017, April 12]







