Handle small roundabouts, fixes #516.
This gives us ~51k additional roundabout instructions. Guidance handes sizes internally. Note: it is highway=mini_roundabout but junction=roundabout References: - http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmini_roundabout - http://wiki.openstreetmap.org/wiki/Tag:junction=roundabout - http://taginfo.openstreetmap.org/tags/highway=mini_roundabout
This commit is contained in:
@@ -103,11 +103,11 @@ function way_function (way, result)
|
||||
-- nothing to do
|
||||
elseif oneway == "-1" then
|
||||
result.forward_mode = mode.inaccessible
|
||||
elseif oneway == "yes" or oneway == "1" or oneway == "true" or junction == "roundabout" then
|
||||
elseif oneway == "yes" or oneway == "1" or oneway == "true" or junction == "roundabout" or highway == "mini_roundabout" then
|
||||
result.backward_mode = mode.inaccessible
|
||||
end
|
||||
|
||||
if junction == 'roundabout' then
|
||||
if junction == 'roundabout' or highway == 'mini_roundabout' then
|
||||
result.roundabout = true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user