adamfranco / curvature

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

Discarded entries should be logged #30

Closed Fonsan closed 8 years ago

Fonsan commented 8 years ago

Let's not silently drop any entries anywhere in the project, they should always be logged as a aggregate in verbose mode.

if refs[0] == refs[-1]:
    continue

Providing a callback interface in which faulty entries are passed with the reason of being discarded would allow specific handling of and correction of the OSM data.

The code above could perhaps even be moved out into it's own post processor