Skip to content

Commit

Permalink
Merge pull request #553 from nptscot/la-approach2
Browse files Browse the repository at this point in the history
la approach2
  • Loading branch information
Robinlovelace authored Nov 27, 2024
2 parents 564956f + 113f0ba commit 4bc4efd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
6 changes: 4 additions & 2 deletions code/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ tar_source()

parameters = jsonlite::read_json("parameters.json", simplifyVector = T)
lads = sf::read_sf("inputdata/boundaries/la_regions_2023.geojson")
mapview::mapview(lads)
# To test for a single local authority:
lads = lads |> filter(LAD23NM %in% c("Clackmannanshire"))
lads = lads |>
filter(LAD23NM %in% c("Clackmannanshire"))
date_folder = parameters$date_routing
la_names = lads$LAD23NM
output_folder = file.path("outputdata", date_folder)
la_names_lowercase = snakecase::to_snake_case(la_names)

# Build route networks:
la_name = la_names[1]
la_name = la_names[2]
for (la_name in la_names) {
message("Processing la_name: ", la_name)
parameters$local_authority = la_name
Expand Down
11 changes: 1 addition & 10 deletions route_ids.csv
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
nrow,plan,purpose,region,date,id
991,quietest,school,clackmannanshire,2024-11-29,11476
1789,balanced,utility,clackmannanshire,NA,11471
1657,ebike,commute,clackmannanshire,NA,11468
991,balanced,school,clackmannanshire,NA,11462
4140,ebike,commute,dumfries_and_galloway,NA,11332
987,ebike,school,dumfries_and_galloway,NA,11328
987,fastest,school,dumfries_and_galloway,NA,11325
1789,fastest,utility,clackmannanshire,NA,11324
1657,balanced,commute,clackmannanshire,NA,11318
991,quietest,school,clackmannanshire,NA,11316
18924,quietest,utility,city_of_edinburgh,2024-11-31,11366
100,balanced,utility,city_of_edinburgh,2024-11-30,11014
100,balanced,commute,city_of_edinburgh,2024-11-30,11011
100,quietest,school,city_of_edinburgh,2024-11-30,11009
Expand Down

0 comments on commit 4bc4efd

Please sign in to comment.