{"action":"created","issue":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/598","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/598/labels{/name}","comments_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/598/comments","events_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/598/events","html_url":"https://github.com/graphhopper/graphhopper/issues/598","id":120873148,"number":598,"title":"Bike routing should prefer roads with 30 km/h or 15 km/h speed limit","user":{"login":"nemobis","id":901528,"avatar_url":"https://avatars.githubusercontent.com/u/901528?v=3","gravatar_id":"","url":"https://api.github.com/users/nemobis","html_url":"https://github.com/nemobis","followers_url":"https://api.github.com/users/nemobis/followers","following_url":"https://api.github.com/users/nemobis/following{/other_user}","gists_url":"https://api.github.com/users/nemobis/gists{/gist_id}","starred_url":"https://api.github.com/users/nemobis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemobis/subscriptions","organizations_url":"https://api.github.com/users/nemobis/orgs","repos_url":"https://api.github.com/users/nemobis/repos","events_url":"https://api.github.com/users/nemobis/events{/privacy}","received_events_url":"https://api.github.com/users/nemobis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-07T21:35:12Z","updated_at":"2015-12-08T09:12:18Z","closed_at":null,"body":"Same issue as https://github.com/graphhopper/graphhopper/issues/597 , please see for my test case.\r\n\r\n30 km/h zones and speed limits are increasingly used to create ways that, while still allowed for motor vehicles and mixed usage, are recommended for bicycles:\r\n* http://www.ecf.com/advocary/mobility/traffic-calming30-kh/\r\n* http://www.copenhagenize.com/2010/01/30-kmh-zones-work.html\r\nA 15 km/h limit is more extreme and can be taken as a strong indication of a road being practically forbidden to cars, almost equivalent to a cycleway. (An even lower limit on an extended way would practically be like a pedestrian area, I guess; I'm not sure if that's in use.)\r\n\r\nTo the contrary, roads which lead to motorway junctions may theoretically have a 50 km/h speed limit, but, when the limit becomes (or was) 90 km/h at a few meters distance, drivers are unlikely to respect the lower limit.\r\n\r\nConcretely, I think that in addition to setAvoidSpeedLimit() https://github.com/graphhopper/graphhopper/blob/fed03547acea0b0edbbb90dc723b944250463ef9/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java#L201 there should be:\r\n* a setPreferSpeedLimit() set at 15 for bike and MTB, perhaps 30 for racing bikes, so that via Idro in the example is chosen over normal roads (as long as the surface or type is reasonable);\r\n* a setting to also avoid or discourage getting 50-100 m far or closer from a way whose speed limit is above the avoided one; or alternatively, to discourage going over ways which in 50-100 more meters turn into highway=motorway_junction, highway=primary,  highway=motorway, highway=motorway_link or similar."},"comment":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/comments/162823231","html_url":"https://github.com/graphhopper/graphhopper/issues/598#issuecomment-162823231","issue_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/598","id":162823231,"user":{"login":"nemobis","id":901528,"avatar_url":"https://avatars.githubusercontent.com/u/901528?v=3","gravatar_id":"","url":"https://api.github.com/users/nemobis","html_url":"https://github.com/nemobis","followers_url":"https://api.github.com/users/nemobis/followers","following_url":"https://api.github.com/users/nemobis/following{/other_user}","gists_url":"https://api.github.com/users/nemobis/gists{/gist_id}","starred_url":"https://api.github.com/users/nemobis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemobis/subscriptions","organizations_url":"https://api.github.com/users/nemobis/orgs","repos_url":"https://api.github.com/users/nemobis/repos","events_url":"https://api.github.com/users/nemobis/events{/privacy}","received_events_url":"https://api.github.com/users/nemobis/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T09:12:18Z","updated_at":"2015-12-08T09:12:18Z","body":"Sure, thank you."}}