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

Refactor stage 2: pre-filters #22

Closed adamfranco closed 8 years ago

adamfranco commented 8 years ago

This is a sub-task of #20, Refactor collecting, preprocessing, and curvature calculation.

Stage 2: Pre-filter An optional second "pre-filter" stage could take in one collection of joined ways and break these collections apart based on tags, such as surface, potentially dropping some altogether. The result would be the same data-structure as above, with all of the data for each way available. This wouldn't be needed for users who want to keep all ways in their data set (the filtering could be done later for particular outputs), but it could serve to lower the data-processing costs for users who are only interested in a sub-set of the data.

adamfranco commented 8 years ago

I portion of #20 is now done. My personal use-case of dropping everything other than public, paved roads can now be met. Certainly more filters could be added, but basic ones like getting ride of hiking paths and sidewalks is in places.