Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

street_network_to_sf

Extract OpenStreetMap network in sf format from a network.dat built with setup_r5


Description

Extract OpenStreetMap network in sf format from a network.dat built with setup_r5

Usage

street_network_to_sf(r5r_core)

Arguments

r5r_core

a rJava object, the output from 'r5r::setup_r5()'

Value

A list with two components of a street network in sf format: vertices (POINT) and edges (LINESTRING).

See Also

Examples

if (interactive()) {

library(r5r)

# build transport network
path <- system.file("extdata/poa", package = "r5r")
r5r_core <- setup_r5(data_path = path)

# extract street network from r5r_core
street_net <- street_network_to_sf(r5r_core)

stop_r5(r5r_core)
}

r5r

Rapid Realistic Routing with 'R5'

v0.4.0
MIT + file LICENSE
Authors
Marcus Saraiva [aut] (<https://orcid.org/0000-0001-6218-2338>), Rafael H. M. Pereira [aut, cre] (<https://orcid.org/0000-0003-2125-7465>), Daniel Herszenhut [aut] (<https://orcid.org/0000-0001-8066-1105>), Carlos Kaue Vieira Braga [aut] (<https://orcid.org/0000-0002-6104-7297>), Matthew Wigginton Conway [aut] (<https://orcid.org/0000-0002-1210-2982>), Ipea - Institue for Applied Economic Research [cph, fnd]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.