{"action":"created","issue":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/634","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/634/comments","events_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/634/events","html_url":"https://github.com/graphhopper/graphhopper/issues/634","id":125321713,"number":634,"title":"Odd choices in bicycle routing, perhaps due to 50 km/h limit on some of the involved segments","user":{"login":"sebalis","id":8028279,"avatar_url":"https://avatars.githubusercontent.com/u/8028279?v=3","gravatar_id":"","url":"https://api.github.com/users/sebalis","html_url":"https://github.com/sebalis","followers_url":"https://api.github.com/users/sebalis/followers","following_url":"https://api.github.com/users/sebalis/following{/other_user}","gists_url":"https://api.github.com/users/sebalis/gists{/gist_id}","starred_url":"https://api.github.com/users/sebalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebalis/subscriptions","organizations_url":"https://api.github.com/users/sebalis/orgs","repos_url":"https://api.github.com/users/sebalis/repos","events_url":"https://api.github.com/users/sebalis/events{/privacy}","received_events_url":"https://api.github.com/users/sebalis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-07T04:47:58Z","updated_at":"2016-01-19T15:46:57Z","closed_at":null,"body":"Hi, as requested by @karussel in the thread after https://twitter.com/SebaLis/status/684729267419234304 I have this to report:\r\n\r\nOn a local road, Graphhopper makes some strange choices in bicycle routing. This is a large inner-city road, dual carriageway and part of a German “B” road but still a city road that is not grade-separated, intersects with all roads and has a pavement that is partly a cycle lane next to it. In OSM it’s modelled as two ways for the two directions tagged with highway:secondary and oneway:yes, and a maxspeed:50 tag. The pavement and cycle lane is modelled as one and the same sequence of ways having both the foot:designated and bicycle:designated tags.\r\n\r\nhttps://graphhopper.com/maps/?point=52.022785%2C8.528824&point=52.019959%2C8.526238&locale=en&vehicle=bike&weighting=fastest&elevation=true&layer=Omniscale shows that a bicycle routing on the road from one crossing to the third-next one branches off the road at an intermediate crossing using lanes that are actually intended only for turning into a residential road and back from that road into the main one. These are segments marked highway:residential and oneway:yes but with no speed limit (of course the regular 50 km/h speed within German cities still applies, I suppose the limit is there on the main road because in some rare cases a 70 km/h applies to main city roads).\r\n\r\nWhen the start and end positions are moved from the road to the pavement/cycle lane as shown in https://graphhopper.com/maps/?point=52.022844%2C8.528749&point=52.019986%2C8.526099&locale=en&vehicle=bike&weighting=fastest&elevation=true&layer=Omniscale the routing still tries to use these residential segments and ends up with an even more nonsensical path.\r\n\r\n@karussell speculated on Twitter that the missing speed limit was what made these segments so popular for Graphhopper’s cycle routing. But that does not make much sense as a) bicycles should not avoid a road with a 50 km/h limit and b) using these two short segments ends up with a longer and non-straight overall route, particularly in the second case, and that extra length and the required turns should outweigh the advantage of hypothetically being faster than 50 km/h on these short segments. Also, the pavement/cycle lane that is used in the second case does not have a speed limit either of course and is also a more direct route than the solution that is returned."},"comment":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/comments/172893498","html_url":"https://github.com/graphhopper/graphhopper/issues/634#issuecomment-172893498","issue_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/634","id":172893498,"user":{"login":"sebalis","id":8028279,"avatar_url":"https://avatars.githubusercontent.com/u/8028279?v=3","gravatar_id":"","url":"https://api.github.com/users/sebalis","html_url":"https://github.com/sebalis","followers_url":"https://api.github.com/users/sebalis/followers","following_url":"https://api.github.com/users/sebalis/following{/other_user}","gists_url":"https://api.github.com/users/sebalis/gists{/gist_id}","starred_url":"https://api.github.com/users/sebalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebalis/subscriptions","organizations_url":"https://api.github.com/users/sebalis/orgs","repos_url":"https://api.github.com/users/sebalis/repos","events_url":"https://api.github.com/users/sebalis/events{/privacy}","received_events_url":"https://api.github.com/users/sebalis/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T15:46:57Z","updated_at":"2016-01-19T15:46:57Z","body":"The segment I was writing about does not have be tagged via opposite etc – it’s on the other side of the road, so it’s not supposed to be used in the direction that this route uses it in."}}