oaksandspokes / raleighbikeways

Raleigh Bikeways
https://map.oaksandspokes.com
The Unlicense
5 stars 2 forks source link

Routing doesn't preferentially follow suggested ways #33

Open jumbanho opened 4 years ago

jumbanho commented 4 years ago

It would be really handy if routing favored highlighted ways. It sounds like the routing is currently using the Mapbox API. There are several open source routing engines that could be used. I realize that this is a pretty large task, but it would be really helpful to get bike-shy people on those recommended ways.

oaksandspokes commented 4 years ago

Can you recommend some of the routing engines?

Also can you give me an example of a recommended path that is worse than if it took a recommended way? From my experience it seems to just pick an equivalent path that is parallel, but I haven't tested it a ton.

Thanks for the feedback!

jumbanho commented 4 years ago

Here is an example that I first noticed this issue with Start: -79.04910,35.91032 Finish: -78.93589,35.91260 This route avoids a much safer (and recommended on the map) use of Barbee Chapel->Stagecoach Rd -> ATT and ends up going up Garrett Road which is pretty sketchy. Granted, neither of these would normally be tackled by a bike shy person, but given that this is using just OSM data for routing, it probably sees little difference between Garrett and Barbee Chapel.

The routing engines I know about are listed in this forum post, but definitely would involve a leap in complexity for this site! https://help.openstreetmap.org/questions/52516/how-can-i-install-my-local-routing-engine I don't think that just switching API would help, we would have to have our own complete local version of OSM data and modify it to somehow upweight recommended roads/paths. Feel free to close issue if you feel this is too much, but I can see if anyone has done something similar.

jonathonwpowell commented 4 years ago

Thanks! I will reach out to mapbox to see if there is a way to nudge their algorithm as that would be much easier. I will look into the other routing engines, but I would be worried about the effort required