process one-ways correctly in osm2navit
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 10 Oct 2007 08:46:03 +0000 (08:46 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 10 Oct 2007 08:46:03 +0000 (08:46 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@456 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/script/osm2navit

index b348cc6..64b22dc 100755 (executable)
@@ -190,6 +190,9 @@ while (<>) {
                if ($tag{'name'} ne '') {
                        $oline.=' label="' . $tag{'name'} . '"';
                }
+               if ($tag{'oneway'} eq 'true' || $tag{'oneway'} eq 'yes') {
+                       $oline.=' limit=1';
+               }
                $oline .= ' debug="way_id=' . $way_id . ' ';
                while (($key,$value)=each(%tag)) {
                        $oline .= "$key='$value' ";