Lua OSRM使用渡轮避开航线
我正在运行一个本地OSRM后端,并试图自定义配置文件,以避免使用渡轮的路线,但我不太清楚应该使用哪些参数 我在Lua OSRM使用渡轮避开航线,lua,routing,openstreetmap,osrm,Lua,Routing,Openstreetmap,Osrm,我正在运行一个本地OSRM后端,并试图自定义配置文件,以避免使用渡轮的路线,但我不太清楚应该使用哪些参数 我在profiles/car.lua中添加了“ferry”: avoid = Set { 'area', -- 'toll', -- uncomment this to avoid tolls 'reversible', 'impassable', 'hov_lanes', 'steps', 'ferry', 'construction', 'prop
profiles/car.lua中添加了“ferry”:
avoid = Set {
'area',
-- 'toll', -- uncomment this to avoid tolls
'reversible',
'impassable',
'hov_lanes',
'steps', 'ferry',
'construction',
'proposed'
},
为此:
access_tag_blacklist = Set {
'no',
'agricultural',
'forestry',
'emergency',
'psv',
'customers',
'private',
'delivery',
'ferry',
'destination'
},
-- tags disallow access to in combination with highway=service
service_access_tag_blacklist = Set {
'private'
},
restricted_access_tag_list = Set {
'private',
'delivery',
'destination',
'customers','ferry'
},
但是在使用osrmextract--profile profiles/car.lua data/export.osm重新运行所有服务器之后,我得到了相同的结果
你知道我做错了什么,或者我遗漏了什么吗
谢谢 将ferry
添加到访问标记列表将不起作用,因为ferry
既不是有效键,也不是有效值。相反,轮渡是一种特殊类型的交通工具
我不熟悉OSRM配置文件。但是,包含渡轮航线的速度:
route_speeds = {
ferry = 5,
shuttle_train = 10
},
尝试将其设置为非常大的值。这甚至有一个优势,即如果OSRM是到达目的地的唯一选择,它将选择渡轮航线