Skip to content

Commit 04a6a36

Browse files
committed
Handle some implied OSM one-ways. #69
1 parent e99bfc0 commit 04a6a36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backend/src/map_model.rs

+5
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,11 @@ impl Direction {
666666
} else if tags.is("oneway", "-1") {
667667
Self::Backwards
668668
} else {
669+
// https://wiki.openstreetmap.org/wiki/Key:oneway#Implied_oneway_restriction
670+
if tags.is("highway", "motorway") || tags.is("junction", "roundabout") {
671+
return Self::Forwards;
672+
}
673+
669674
Self::BothWays
670675
}
671676
}

0 commit comments

Comments
 (0)