Skip to content

Commit

Permalink
Update text in c12
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Apr 11, 2020
1 parent 7619228 commit 3c35f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 12-transport.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ The benefits of cycling trips are greatest when they replace car trips.
Clearly, not all car trips can realistically be replaced by cycling.
However, 5 km Euclidean distance (or around 6-8 km of route distance) can realistically be cycled by many people, especially if they are riding an electric bicycle ('ebike').
We will therefore only route desire lines\index{desire lines} along which a high (300+) number of car trips take place that are up to 5 km in distance.
This routing\index{routing} is done by the **stplanr**\index{stplanr (package)} function `line2route()` which takes straight lines in `Spatial` or `sf` objects, and returns 'bendy' lines representing routes on the transport network\index{network} in the same class as the input.
This routing\index{routing} is done in the code chunk below by the **stplanr**\index{stplanr (package)} function `route()`, which creates `sf` objects representing routes on the transport network\index{network}, one for each desire line.

```{r 12-transport-17, message=FALSE}
desire_lines$distance = as.numeric(st_length(desire_lines))
Expand Down

0 comments on commit 3c35f76

Please sign in to comment.