tc_traffic_calming: Ge traffic calming measures for an area from OSM

Description Usage Arguments Examples

View source: R/tc_traffic_calming.R

Description

Use osmextract to get the roads and then filter on other_tags with keyword traffic_calming (see OSM Wiki). Currently it only takes the place argument.

Usage

1
tc_traffic_calming(place = NULL, convert_to_points = FALSE)

Arguments

place

Geographic name or coordinates as per osmextract function oe_get.

convert_to_points

Should linestring geometries be converted to points? FALSE by default.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
tc_interventions = tc_traffic_calming("Isle of Wight")
plot(tc_interventions)
tc_interventions
summary(tc_interventions$geometry) # points and lines in there
tc_points = tc_traffic_calming("Isle of Wight", convert_to_points = TRUE)
summary(tc_points$geometry) # points only
tc_wy = tc_traffic_calming("West Yorkshire")
table(tc_wy$traffic_calming)

## End(Not run)

saferactive/traffiCalmr documentation built on Nov. 18, 2021, 5:06 a.m.