ignacioarnaldo / OpenStreetMap2Graph

Parse OpenStreetMap raw files - obtain graphs and dot files for graph visualization
http://ignacioarnaldo.github.io/OpenStreetMap2Graph
5 stars 0 forks source link

Oneway problem #1

Open tsite opened 9 years ago

tsite commented 9 years ago

Technically, according to OSM specifications, roads can have the oneway field set to -1, in which case the road is still oneway. Line 53 of Road.java can be changed to if (oneWayAux == 1 || oneWayAux == -1) { to fix this issue.

tsite commented 9 years ago

Also, line 72 of Road.java (included below) should be commented out saveText("madrid-map.csv",coordinatesOrigin + "," + coordinatesDest + "\n",true);