From cfa5d7e172ae8bdb73242b089b9701b22f45dc90 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Mon, 18 Sep 2017 12:19:07 +0200 Subject: [PATCH] Add support of distance in foot and bicycle profiles --- CHANGELOG.md | 1 + profiles/bicycle.lua | 7 +++++-- profiles/foot.lua | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 210667a95..31ec1d632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # UNRELEASED - Profile: - New function to support relations: `process_relation`. Read more in profiles documentation. + - Support of `distance` weight in foot and bicycle profiles - Infrastructure: - Lua 5.1 support is removed due to lack of support in sol2 https://github.com/ThePhD/sol2/issues/302 - Node.js Bindings: diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index fd0170754..2cd2e0dad 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -536,7 +536,7 @@ function process_way(profile, way, result) -- handle turn lanes and road classification, used for guidance WayHandlers.classification, - + -- handle allowed start/end modes WayHandlers.startpoint, @@ -544,7 +544,10 @@ function process_way(profile, way, result) WayHandlers.roundabouts, -- set name, ref and pronunciation - WayHandlers.names + WayHandlers.names, + + -- set weight properties of the way + WayHandlers.weights } WayHandlers.run(profile,way,result,data,handlers) diff --git a/profiles/foot.lua b/profiles/foot.lua index 3e1c6fc1c..687c4631f 100644 --- a/profiles/foot.lua +++ b/profiles/foot.lua @@ -237,7 +237,10 @@ function process_way(profile, way, result) WayHandlers.startpoint, -- set name, ref and pronunciation - WayHandlers.names + WayHandlers.names, + + -- set weight properties of the way + WayHandlers.weights } WayHandlers.run(profile,way,result,data,handlers)