congestion_poly2geojson | R Documentation |
Support function that checks the input of speeds polygon passed to
build_custom_network()
and saves it to a .geojson
temporary file.
congestion_poly2geojson(new_speeds_poly)
new_speeds_poly |
An sf polygon |
The path to a .geojson
saved as a temporary file.
Other Support functions:
lts_lines2shp()
# read polygons with new speeds
congestion_poly <- readRDS(
system.file("extdata/poa/poa_poly_congestion.rds", package = "r5r")
)
geojson_path <- r5r:::congestion_poly2geojson(
new_speeds_poly = congestion_poly
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.