create_drn: Digital Road Network

Description Usage Arguments Details Author(s) Examples

View source: R/DRN.R

Description

Create a Digital Road Network

Usage

1
create_drn(bbox)

Arguments

bbox

spatial bounding box from spatial data (bbox)

Details

This function downloads OSM road data for the area defined by the bounding box and creates a digital road network.

Author(s)

Nikolai Gorte <n.gorte@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
data(traj)
roads <- create_drn(bbox(traj))

# Plot everything
plot(traj)
lines(slot(roads, "sl"))

# Shortest path
shortest.paths(slot(roads, "g"), V(slot(roads, "g"))[1], V(slot(roads, "g"))[23])

## End(Not run)

ngort01/fuzzyMM documentation built on May 23, 2019, 4:43 p.m.