Add support of distance in foot and bicycle profiles

This commit is contained in:
Michael Krasnyk 2017-09-18 12:19:07 +02:00
parent fd7791a0e2
commit cfa5d7e172
3 changed files with 10 additions and 3 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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)