adamfranco / curvature

Find roads that are the most curvy or twisty based on Open Street Map (OSM) data.
http://roadcurvature.com/
223 stars 37 forks source link

Prioritize highway classification when joining #60

Open adamfranco opened 3 years ago

adamfranco commented 3 years ago

In Copenhagen I encountered a situation where a tertiary road happened to be split at the junction between it and a service road with the same name. Because of the current Join order, joining diverged from the tertiary road onto the service road, then got stuck there.

Screen Shot 2020-11-05 at 9 41 00 AM Screen Shot 2020-11-05 at 9 41 20 AM

When sorting ways prior to joining, order them in descending order of highway class so that we'll be more likely to continue on higher-class ways than diverge onto similarly-named lower-classification ways.