Permalink
Browse files

Removing man_mades=* from being routable

  • Loading branch information...
1 parent 64d14da commit dc86007fa9cb0e9c4fa8004308ca55551a03b9e7 DennisOSRM committed Oct 11, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 profiles/car.lua
View
14 profiles/car.lua
@@ -7,7 +7,7 @@ access_tag_restricted = { ["destination"] = true, ["delivery"] = true }
access_tags = { "motorcar", "motor_vehicle", "vehicle" }
access_tags_hierachy = { "motorcar", "motor_vehicle", "vehicle", "access" }
service_tag_restricted = { ["parking_aisle"] = true }
-ignore_in_grid = { ["ferry"] = true, ["pier"] = true }
+ignore_in_grid = { ["ferry"] = true }
speed_profile = {
["motorway"] = 90,
@@ -26,7 +26,7 @@ speed_profile = {
["service"] = 15,
-- ["track"] = 5,
["ferry"] = 5,
- ["pier"] = 5,
+-- ["pier"] = 5,
["default"] = 50
}
@@ -93,7 +93,7 @@ function way_function (way, numberOfNodesInWay)
local junction = way.tags:Find("junction")
local route = way.tags:Find("route")
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 oneway = way.tags:Find("oneway")
local cycleway = way.tags:Find("cycleway")
@@ -138,8 +138,8 @@ function way_function (way, numberOfNodesInWay)
-- Handling ferries and piers
- if (speed_profile[route] ~= nil and speed_profile[route] > 0) or
- (speed_profile[man_made] ~= nil and speed_profile[man_made] > 0)
+ if (speed_profile[route] ~= nil and speed_profile[route] > 0) --or
+ --(speed_profile[man_made] ~= nil and speed_profile[man_made] > 0)
then
if durationIsValid(duration) then
way.speed = math.max( parseDuration(duration) / math.max(1, numberOfNodesInWay-1) );
@@ -148,8 +148,8 @@ function way_function (way, numberOfNodesInWay)
way.direction = Way.bidirectional;
if speed_profile[route] ~= nil then
highway = route;
- elseif speed_profile[man_made] ~= nil then
- highway = man_made;
+ --elseif speed_profile[man_made] ~= nil then
+ -- highway = man_made;
end
if not way.is_duration_set then
way.speed = speed_profile[highway]

0 comments on commit dc86007

Please sign in to comment.