Seek or Avoid Curves

Rank a mountain trip's routes by how winding they are, set what counts as a curve, see its open-road bends, town turns and hairpins, and pick a curvy stretch to see where it runs.

View on GitHub

Each route comes back with its curves, and getRouteProgressForSection times each one, so ranking the routes by their share of the drive in curves takes one sum.

Related examples