cyipt / actdev

ActDev - Active travel provision and potential in planned and proposed development sites
https://actdev.cyipt.bike
7 stars 3 forks source link

Route data has meaningless origin and destination codes #134

Closed Robinlovelace closed 3 years ago

Robinlovelace commented 3 years ago

Linked with #126

image

Discussed with @joeytalbot - not a priority but worth flagging.

Robinlovelace commented 3 years ago

Heads-up @joeytalbot I'm rebuilding all affected sites and should have this fixed soon.

Robinlovelace commented 3 years ago

Code used to find the errant sites:


# find sites with disag data (run once and then can remove)
i = 1
has_synthetic_data = function(site_name) {
  f = file.path("data-small", site_name, "routes-fast.geojson")
  r = sf::read_sf(f)
  any(grepl(pattern = "^i|synthetic", x = r$geo_code2))
}
sel_synthetic = sapply(sites$site_name, has_synthetic_data)
site_names_to_build = site_names_to_build[sel_synthetic]