move hardcoded road priorities into profiles, change road classification

This commit is contained in:
Moritz Kobitzsch
2016-06-24 16:06:45 +02:00
committed by Patrick Niklaus
parent fd6bb5ec1f
commit 1fc63e1e72
23 changed files with 451 additions and 527 deletions
+4
View File
@@ -2,6 +2,7 @@
local find_access_tag = require("lib/access").find_access_tag
local limit = require("lib/maxspeed").limit
local set_classification = require("lib/guidance").set_classification
-- Begin of globals
barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true, ["entrance"] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["block"] = true }
@@ -392,6 +393,9 @@ function way_function (way, result)
result.backward_speed = math.min(surface_speeds[surface], result.backward_speed)
end
-- set the road classification based on guidance globals configuration
set_classification(highway,result)
-- maxspeed
limit( result, maxspeed, maxspeed_forward, maxspeed_backward )
end