Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bicycle routing: Don't prefer cycleways too much over tracks/path/footways #314

Closed
wants to merge 1 commit into from

Conversation

spaetz
Copy link
Contributor

@spaetz spaetz commented Sep 16, 2012

Previously we would make huge detours to prefer cycleways. E.g. versus a
footway with bicycle=yes we would take more than 3 time as long ways
(16/8)*(1.5/0.9) > 3 to use a cycleway. We would also take long detours
(more than twice as long ways) to prefer a track/path over a footway with
bicycle=yes. Often footway/bicycle=yes are synonyms for highway=path,
and the latter is not faster or better at all. This led to weird bicycle
routing where I was taking long detours to stay on a "path" rather than
a "footway".

Take up Victors suggestion of bumbing the speed of a footway
from 8 to 12, which is still realistic and tone down the priority of 1.5
for cycleways/track/path to 1.3 which was too high.
This is what this patch does. Now we have:

Highway= Speed= Priority= Detours-vs-footway=
footway 12 1 --
track/path 12 1.3 30%
cycleway 16 1.3 73%

I believe this still prefers tracks/path and cycleway enough and the
weird routing went away. (the data has changed now or I would give
the example location. But I tested a few bike routes involving various
ways and the suggestions were sensible.

Signed-off-by: Sebastian Spaeth Sebastian@SSpaeth.de

…tways

Previously we would make huge detours to prefer cycleways. E.g. versus a
footway with bicycle=yes we would take more than 3 time as long ways
(16/8)*(1.5/0.9) > 3 to use a cycleway. We would also take long detours
(more than twice as long ways) to prefer a track/path over a footway with
bicycle=yes. Often footway/bicycle=yes are synonyms for highway=path,
and the latter is not faster or better at all. This led to weird bicycle
routing where I was taking long detours to stay on a "path" rather than
a "footway".

Take up Victors suggestion of bumbing the speed of a footway
from 8 to 12, which is still realistic and tone down the priority of 1.5
for cycleways/track/path to 1.3 which was too high.
This is what this patch does. Now we have:

Highway=   Speed=   Priority=  Detours-vs-footway=
footway    12       1          --
track/path 12       1.3        30%
cycleway   16       1.3        73%

I believe this still prefers tracks/path and cycleway enough and the
weird routing went away. (the data has changed now or I would give
the example location. But I tested a few bike routes involving various
ways and the suggestions were sensible.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
<road tag="highway" value="tertiary" speed="16" priority="1" dynamicPriority="1"/>
<road tag="highway" value="tertiary_link" speed="16" priority="1" dynamicPriority="1"/>
<road tag="highway" value="road" speed="16" priority="1" dynamicPriority="1"/>
<road tag="highway" value="residential" speed="16" priority="1.1" dynamicPriority="1.1"/>
<road tag="highway" value="cycleway" speed="16" priority="1.5" dynamicPriority="1"/>

<road tag="highway" value="cycleway" speed="16" priority="1.3" dynamicPriority="1.3"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toned down cycleway, which Victor said was too high compared to other tracks/paths. And it was really routing me on weird ways to keep me on a cycleway before.

@spaetz
Copy link
Contributor Author

spaetz commented Sep 16, 2012

Last comment. Here is the output of a route with the new values and the old values for comparison:

This is how the old osmand routed me:
http://imageshack.us/photo/my-images/31/screenshotfrom201209162.png/

On the right is a YOURS and Cloudmade route, on the left is a route with this patch:
http://img543.imageshack.us/img543/430/routing.png

You can see that the three routes differ. YOURS and Cloudmade basically give me a fast, but not beautiful route, which is essentially a car route. The old osmand took a way through quieter residential areas which is indeed nicer to bike, and the new values lead me on even more cycleways. This is the route that I would be taking in real life too.

But that is just for information. Perhaps we need a nice versus fast profile for bicycles?

Happy for any feedback :-)
Sebastian

@vshcherb vshcherb closed this Nov 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants