Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions s2/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,27 @@ Work through the reproducible code in the "Introducing osmextract" vignette host

- Reproduce the examples
- Get all supermarkets in OSM for West Yorkshire
- Get all bus stops in Leeds from OSM using `osmextract`
- Get all electric car charging points in West Yorkshire from OSM
- Identify all cycleways in West Yorkshire and, using the stats19 data you have already downloaded, identify all crashes that happened near them.

Example of getting bus stops:

```r
q = "select * from points where highway IN ('bus_stop')"
bus_stop_leeds = osmextract::oe_get("leeds", query = q)
mapview::mapview(bus_stop_leeds)
```

Example of getting electric car charging points:

```r
q = "SELECT * FROM 'points' WHERE amenity IN ('charging_station')"
extra_tags = "amenity"
electric_charging_points = osmextract::oe_get(place = "leeds", query = q, extra_tags = extra_tags)
mapview::mapview(electric_charging_points)
```

```{r}
#| eval: false
#| echo: false
Expand Down