Skip to contents

This function joins NDS data with OSM speed limit data, including a 10-meter buffer around axis data and arranging speed limit information.

Usage

nds_join_spdlimit(ndsbr_data, osm_data, vars = "maxspeed")

Arguments

ndsbr_data

An sf object representing NDS data. This object should have a POINT geometry type.

osm_data

An sf object representing OSM data. This object should have a LINESTRING or MULTILINESTRING geometry type.

vars

A character vector of variables to join from the OSM data. Default is "maxspeed".

Value

An sf object with the joined data, including speed limit information.

Examples

if (FALSE) {
cwb_osm <- nds_download_cwb_osm()
result <- nds_join_spdlimit(ndsbr_data_sf, cwb_osm)
}