congestion_poly2geojson: Save speeds polygon to .geojson temporary file

View source: R/utils.R

congestion_poly2geojsonR Documentation

Save speeds polygon to .geojson temporary file

Description

Support function that checks the input of speeds polygon passed to build_custom_network() and saves it to a .geojson temporary file.

Usage

congestion_poly2geojson(new_speeds_poly)

Arguments

new_speeds_poly

An sf polygon

Value

The path to a .geojson saved as a temporary file.

See Also

Other Support functions: lts_lines2shp()

Examples



# 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
  )


r5r documentation built on Aug. 21, 2025, 5:44 p.m.