drt_drtm: Demand responsive transport model class.

Description Usage Arguments Value Examples

View source: R/drtm.R

Description

Creates a demand responsive transport representation of in an Area of Interest (AOI). The constructor takes a polygon (aoi), point population values (pop) and the number of virtual stations to plan as input. Then it retrieves the street network in the area of interest from OSM. Based on the OSM data a routing graph for walking and driving is created.

Usage

1
2
3
4
5
6
7
8
drt_drtm(
  model_name,
  aoi,
  pop,
  n_vir,
  m_seg = 100,
  calc_energy = e_walkDrive_pop
)

Arguments

model_name

character, name of the drtm.

aoi

sf, polygon of the Area of Interest (AOI).

pop

sf, centroids of a hectaraster population dataset covering the full extent of the 'aoi' input (column name for population must be 'n').

n_vir

numeric, number of the virtual stations to place.

m_seg

numeric, resolution of the road segmentation in meters.

calc_energy

function, energy calculation function.

Value

A demand responsive transport model of class 'drtm'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Example data
aoi <-
  sf::st_read(system.file("example.gpkg", package = "drtplanr"), layer = "aoi")

pop <-
  sf::st_read(system.file("example.gpkg", package = "drtplanr"), layer = "pop")

# Create model
m <- drt_drtm(
  model_name = "Jegenstorf",
  aoi = aoi, pop = pop,
  n_vir = 10, m_seg = 100
)
m

munterfinger/drtplanr documentation built on Oct. 3, 2021, 7:28 p.m.