ox_as_sf: Extract 'sf' nodes and edges from an 'osm_graph'

View source: R/osm_graph.R

ox_as_sfR Documentation

Extract sf nodes and edges from an osm_graph

Description

Extract sf nodes and edges from an osm_graph

Usage

ox_as_sf(g)

Arguments

g

An osm_graph.

Value

A named list with sf elements nodes and edges.

Examples

g <- example_osm_graph()
parts <- ox_as_sf(g)
parts$edges

osmnxr documentation built on Oct. 20, 2026, 1:07 a.m.