ITSLeeds / pct

Get and reproduce data from the Propensity to Cycle Tool (PCT)
https://itsleeds.github.io/pct/
19 stars 10 forks source link

Calculation of km cycled per zone should use centroids of rnet segments to avoid double counting #98

Closed Robinlovelace closed 3 years ago

Robinlovelace commented 3 years ago

As discussed with @PublicHealthDataGeek I think st_centroid() should be used to convert the linestring geometry of the rnet object in https://itsleeds.github.io/pct/articles/km-cycled.html into points to prevent double counting of cycle trips along segments that cross boundaries.

Robinlovelace commented 3 years ago

Source: https://github.com/ITSLeeds/pct/blob/master/vignettes/km-cycled.Rmd