add test for roundabout with oneone links

This commit is contained in:
Emil Tin
2014-05-20 13:26:16 +02:00
parent 3968349480
commit bddad0c57c
2 changed files with 83 additions and 1 deletions
+6 -1
View File
@@ -55,6 +55,7 @@ function way_function (way)
local maxspeed = tonumber(way.tags:Find ( "maxspeed"))
local maxspeed_forward = tonumber(way.tags:Find( "maxspeed:forward"))
local maxspeed_backward = tonumber(way.tags:Find( "maxspeed:backward"))
local junction = way.tags:Find("junction")
way.name = name
@@ -96,12 +97,16 @@ function way_function (way)
way.direction = Way.bidirectional
elseif oneway == "-1" then
way.direction = Way.opposite
elseif oneway == "yes" or oneway == "1" or oneway == "true" then
elseif oneway == "yes" or oneway == "1" or oneway == "true" or junction == "roundabout" then
way.direction = Way.oneway
else
way.direction = Way.bidirectional
end
if junction == 'roundabout' then
way.roundabout = true
end
way.type = 1
return 1
end