Adding functionality for turn restriction exceptions to profile

This commit is contained in:
DennisOSRM
2013-01-05 17:32:39 +01:00
parent fa050ad616
commit 64988ed831
4 changed files with 229 additions and 22 deletions
+7
View File
@@ -9,6 +9,7 @@ access_tag_restricted = { ["destination"] = true, ["delivery"] = true }
access_tags = { "foot" }
service_tag_restricted = { ["parking_aisle"] = true }
ignore_in_grid = { ["ferry"] = true }
restriction_exception_tags = { "foot" }
speed_profile = {
["primary"] = 5,
@@ -43,6 +44,12 @@ u_turn_penalty = 2
-- End of globals
function get_exceptions(vector)
for i,v in ipairs(restriction_exception_tags) do
vector:Add(v)
end
end
function node_function (node)
local barrier = node.tags:Find ("barrier")
local access = node.tags:Find ("access")