R/tc_traffic_calming.R
tc_traffic_calming.Rd
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.
tc_traffic_calming(place = NULL, convert_to_points = FALSE)
place | Geographic name or coordinates as per |
---|---|
convert_to_points | Should linestring geometries be converted to points?
|
if (FALSE) { 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) }