Florian 4 years ago
parent
commit
cbc9b51768
1 changed files with 18 additions and 10 deletions
  1. 18 10
      README.md

+ 18 - 10
README.md

@@ -8,9 +8,24 @@ Python generator for MATSim signals xml files
 
 ## prerequisites
 
-MATSim network files (`.xml`)
-OpenStreetMap traffic signal files (`.xml`):
-*(test files are available in `input/` folder)*
+### softwares and data files
+
+- osmosis (http://wiki.openstreetmap.org/wiki/Osmosis)
+- OpenStreetMap data file `.pbf` (http://download.geofabrik.de/)
+- MATSim network file `.xml` (test files are available in `input/` folder for *Calais* city)
+
+### extracting data examples
+
+Extract OpenStreetMap data with osmosis `.osm` (example for *Calais*):
+```
+cd osmosis/
+./bin/osmosis --rbf nord-pas-de-calais-latest.osm.pbf --bounding-box top=50.9759 left=1.7965 bottom=50.9231 right=1.9222 --wx calais.osm
+```
+
+Extract traffic lights data `.xml`:
+```
+./bin/osmosis --rb file=calais.osm --tf accept-nodes highway=traffic_signals --wx signals.osm.xml
+```
 
 ## install
 
@@ -20,11 +35,4 @@ OpenStreetMap traffic signal files (`.xml`):
 
 ## usage
 
-### run
-
     ./signals_gen.py
-
-### examples
-
-## todo
-this readme