[OSM-dev] Question about routing between OSM and private data

Arlindo Pereira openstreetmap at arlindopereira.com
Fri Oct 23 21:20:15 UTC 2015


(As suggested by Frederik Ramm on [1], posting on dev and routing)


Some friends of mine, copied, faced me a question about OSM that I couldn't
answer. They want to create a map (at first, an app, but also a print
version) offering bicycle routing / showing bicycle routes, considering OSM
data (the cycleways and cyclelanes mapped on OSM) and what they call
"cycleroutes" (a concept different of bicycle routes on OSM).

In this understanding, "cycleroutes" are common roads with no bicycle
infrastructure that they arbitrarily chosen over other streets because of
their caracteristics, as in "calm roads". They also tend to be on a less
hilly terrain if possible. They have this network of "calm roads" mapped as
a KML and as a shapefile.

Note that those "calm roads" are not OSM living_streets, just better
options to the bigger avenues, a road that is suggested to a cyclist on a
given route from point A to point B.

Is it possible to use a routing application considering those paths? I
thought about those possibilities:

1) creating a table listing each street on his road list to an array of OSM
Way IDs, and somehow indicating to the algorithm that those ways are
preferred. But this would require constant maintenance as people
edit/split/merge/erase ways.

2) considering the street names, and somehow making the routing algorithm
prefer those ways.

3) mapping those characteristics that made he chose those particular
streets in first place (maxspeed=, incline=, lanes=, highway= itself, etc
etc) and tuning the routing algorithm to prefer those streets. But nothing
would garanteed that the router wouldn't pick a particular tertiary or even
highway=residential that is not "calm" in oppositon to a "calm road".

4) (worst possible option in my opinion) would be creating a tag for those
streets, as in calm_street=yes and make the router prefer those. (Just for
the sake of argument, I know that such edits would probably be reversed.)

All opinions are welcome.

1:
https://help.openstreetmap.org/questions/46084/routing-with-osm-and-private-shp-data
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20151023/44ae0e78/attachment.html>


More information about the dev mailing list