summaryrefslogtreecommitdiff
path: root/navit/script
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-06-29 21:44:00 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-06-29 21:44:00 +0000
commit0bd49a94213388a3e3bae1cd67682a9284cbc498 (patch)
tree50d6fa849f4fa9f21cabc762e56e4ae35e2d83d4 /navit/script
parentaa26fe6fbda4690e8cecc8f73ee23525a8a65c47 (diff)
downloadnavit-svn-0bd49a94213388a3e3bae1cd67682a9284cbc498.tar.gz
Add:script:Tell the neighbours in border_follower
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1179 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/script')
-rwxr-xr-xnavit/script/osm/border_follower.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/navit/script/osm/border_follower.pl b/navit/script/osm/border_follower.pl
index 2bb517ea..4512bfd5 100755
--- a/navit/script/osm/border_follower.pl
+++ b/navit/script/osm/border_follower.pl
@@ -71,8 +71,12 @@ do {
$admin_level=0;
while( my($k,$v) = splice @{$tags}, 0, 2 ) {
print "tag: $k=$v\n";
- if (($k eq "left:$type" || $k eq "right:$type") && $v eq $name && $newid != $lastid) {
- $match=1;
+ if (($k eq "left:$type" || $k eq "right:$type") && $newid != $lastid) {
+ if ($v eq $name) {
+ $match=1;
+ } else {
+ $neighbors{$v}=$newid;
+ }
}
if (($k eq "left:$alt_type" || $k eq "right:$alt_type") && $v eq $name && $newid != $lastid) {
print "Warning: $k in $newid\n";
@@ -113,4 +117,7 @@ do {
} while ($wayid != $first_wayid);
print "End reached\n";
print "Path $path\n";
+while (($key,$value)=each(%neighbors)) {
+ print "Neighbor $key $value\n";
+}
#print Dumper($ways);