Removing man_mades=* from being routable

This commit is contained in:
DennisOSRM 2012-10-11 16:35:14 +02:00
parent 64d14da0fa
commit dc86007fa9

View File

@ -7,7 +7,7 @@ access_tag_restricted = { ["destination"] = true, ["delivery"] = true }
access_tags = { "motorcar", "motor_vehicle", "vehicle" } access_tags = { "motorcar", "motor_vehicle", "vehicle" }
access_tags_hierachy = { "motorcar", "motor_vehicle", "vehicle", "access" } access_tags_hierachy = { "motorcar", "motor_vehicle", "vehicle", "access" }
service_tag_restricted = { ["parking_aisle"] = true } service_tag_restricted = { ["parking_aisle"] = true }
ignore_in_grid = { ["ferry"] = true, ["pier"] = true } ignore_in_grid = { ["ferry"] = true }
speed_profile = { speed_profile = {
["motorway"] = 90, ["motorway"] = 90,
@ -26,7 +26,7 @@ speed_profile = {
["service"] = 15, ["service"] = 15,
-- ["track"] = 5, -- ["track"] = 5,
["ferry"] = 5, ["ferry"] = 5,
["pier"] = 5, -- ["pier"] = 5,
["default"] = 50 ["default"] = 50
} }
@ -93,7 +93,7 @@ function way_function (way, numberOfNodesInWay)
local junction = way.tags:Find("junction") local junction = way.tags:Find("junction")
local route = way.tags:Find("route") local route = way.tags:Find("route")
local maxspeed = parseMaxspeed(way.tags:Find ( "maxspeed") ) local maxspeed = parseMaxspeed(way.tags:Find ( "maxspeed") )
local man_made = way.tags:Find("man_made") --local man_made = way.tags:Find("man_made")
local barrier = way.tags:Find("barrier") local barrier = way.tags:Find("barrier")
local oneway = way.tags:Find("oneway") local oneway = way.tags:Find("oneway")
local cycleway = way.tags:Find("cycleway") local cycleway = way.tags:Find("cycleway")
@ -138,8 +138,8 @@ function way_function (way, numberOfNodesInWay)
-- Handling ferries and piers -- Handling ferries and piers
if (speed_profile[route] ~= nil and speed_profile[route] > 0) or if (speed_profile[route] ~= nil and speed_profile[route] > 0) --or
(speed_profile[man_made] ~= nil and speed_profile[man_made] > 0) --(speed_profile[man_made] ~= nil and speed_profile[man_made] > 0)
then then
if durationIsValid(duration) then if durationIsValid(duration) then
way.speed = math.max( parseDuration(duration) / math.max(1, numberOfNodesInWay-1) ); way.speed = math.max( parseDuration(duration) / math.max(1, numberOfNodesInWay-1) );
@ -148,8 +148,8 @@ function way_function (way, numberOfNodesInWay)
way.direction = Way.bidirectional; way.direction = Way.bidirectional;
if speed_profile[route] ~= nil then if speed_profile[route] ~= nil then
highway = route; highway = route;
elseif speed_profile[man_made] ~= nil then --elseif speed_profile[man_made] ~= nil then
highway = man_made; -- highway = man_made;
end end
if not way.is_duration_set then if not way.is_duration_set then
way.speed = speed_profile[highway] way.speed = speed_profile[highway]