Skip to content

Commit

Permalink
Update for #486
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Apr 4, 2020
1 parent fc7fdc7 commit dccbbe9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 12-transport.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,11 @@ desire_carshort = dplyr::filter(desire_lines, car_driver > 300 & distance < 5000
```

```{r 12-transport-18, eval=FALSE}
route_carshort = line2route(desire_carshort, route_fun = route_osrm)
route_carshort = route(
l = desire_carshort,
route_fun = osrm::osrmRoute,
point_input = TRUE
)
```

`st_length()` determines the length of a linestring, and falls into the distance relations category (see also Section \@ref(distance-relations)).
Expand Down

0 comments on commit dccbbe9

Please sign in to comment.