osrm-backend/profiles
flother 328d2bf856 Handle maxspeed before surface and smoothness
Let's say we have a tertiary road with the following tags:

- maxspeed=60
- surface=gravel
- smoothness=horrible

The maxspeed tag tells us the legal speed limit, but the surface and
smoothness tags have much more effect on the real-world speed of a car.
In the default car profile, the gravel surface sets a driving speed of
40kph, and the horrible smoothness sets a driving speed of 10kph. It
seems to me that the tags should be processed in this order:

1. maxspeed
2. surface
3. smoothness

That is, maxspeed can be overridden by the surface tag, which can in
turn be overridden by the smoothness tag. In the case of our secondary
road, it would start with a driving speed of 60kph (from maxspeed),
which would be reduced to 40kph (from surface), and end at 10kph (from
smoothness).

However, before this change, the maxspeed tag is processed *after*
surface and smoothness: our road starts with a driving speed of 40kph
(from surface), it's reduced to 10kph (from smoothness), and then
*increased* to 60kph (from maxspeed).

This change alters the processing order so that maxspeed is processed
first, giving it the lowest priority of these three tags.
2021-04-02 10:35:44 +00:00
..
examples Allow specifing a weight for routing that is independent of duration 2017-01-27 11:19:37 +01:00
lib Merge pull request #5908 from systemed/debug_way 2020-12-21 20:14:37 +02:00
bicycle.lua Bicycle: treat use_sidepath as no access 2019-12-01 18:34:58 +01:00
car.lua Handle maxspeed before surface and smoothness 2021-04-02 10:35:44 +00:00
debug_example.lua Fix profiles/debug_example.lua cannot interprete by lua 2020-04-09 16:05:37 +07:00
debug_way.lua Update comments 2020-12-15 12:49:52 +00:00
foot.lua change barrier_whitelist to barrier blacklist 2018-05-29 16:56:15 +02:00
rasterbot.lua profiles api v2 2017-07-18 10:09:22 +00:00
rasterbotinterp.lua profiles api v2 2017-07-18 10:09:22 +00:00
test.lua Fix broken path in documentation (#5636) 2020-08-10 08:50:15 -07:00
testbot.lua Address PR comments 2018-05-08 15:50:25 +00:00
turnbot.lua profiles api v2 2017-07-18 10:09:22 +00:00