Skip to contents

Extract street intersections.

Usage

st_extract_intersections(x, threshold = 2)

Arguments

x

a sf object with LINESTRING geometries representing street networks.

threshold

integer; the minimum number of intersecting roads needed to count as an intersection. Default = 2.

Value

A sf object with POINT geometries representing street intersections.

Examples

intersections <- st_extract_intersections(bangalore_highways)
plot(intersections)