Rewrite lua bindings using sol interface

This commit is contained in:
Daniel J. Hofmann
2016-10-19 20:02:41 -07:00
committed by Patrick Niklaus
parent 6e7fe5feb0
commit 0f59b78c02
6 changed files with 2253 additions and 1496 deletions
-1
View File
@@ -239,7 +239,6 @@ function way_function (way, result)
-- ferries (doesn't cover routes tagged using relations)
result.forward_mode = mode.ferry
result.backward_mode = mode.ferry
result.ignore_in_grid = true
if duration and durationIsValid(duration) then
result.duration = math.max( 1, parseDuration(duration) )
else
-1
View File
@@ -7,7 +7,6 @@ barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true,
access_tag_whitelist = { ["yes"] = true, ["foot"] = true, ["permissive"] = true, ["designated"] = true }
access_tag_blacklist = { ["no"] = true, ["private"] = true, ["agricultural"] = true, ["forestry"] = true, ["delivery"] = true }
access_tags_hierarchy = { "foot", "access" }
ignore_in_grid = { ["ferry"] = true }
restrictions = { "foot" }
walking_speed = 5