<div dir="ltr"><span style="font-size:12.8px">(As suggested by Frederik Ramm on [1], posting on dev and routing)</span><div style="font-size:12.8px"><br><div><br></div><div><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">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).</p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif"><span style="line-height:18.2px">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.</span><br></p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">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.</p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">Is it possible to use a routing application considering those paths? I thought about those possibilities:</p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">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.</p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">2) considering the street names, and somehow making the routing algorithm prefer those ways.</p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">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".</p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">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.)</p><p style="border:medium none;margin:0px 0px 13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">All opinions are welcome.</p><div><br></div><div>1: <a href="https://help.openstreetmap.org/questions/46084/routing-with-osm-and-private-shp-data" target="_blank">https://help.openstreetmap.org/questions/46084/routing-with-osm-and-private-shp-data</a></div></div></div></div>