multipleBRoutes: Parallel routes calculation

View source: R/multipleBRoutes.R

multipleBRoutesR Documentation

Parallel routes calculation

Description

Calculate routes with parallel routine for improved speed. The output is a dataframe containing the travel times, distance, total elevation gain, upward and downward slope and energy expenditure for the route The calculated values are a summary of the detailed csv-file that brouter outputs at a route request. The original file can be called with the calculateRoute function or visualized online at http://www.brouter.de/brouter-web by clicking on the Data option after calculating a route.

Usage

multipleBRoutes(
  preset = NULL,
  df = NULL,
  nrOfNodes = 1,
  pathToBrouter = NULL,
  profile = NULL,
  optional = NULL
)

Arguments

preset

A preset of power and weight addition for bikes, e-bikes and s-pedelecs (Swiss norms).

df

A dataframe or datatable containing all origin-destination pairs. The table has to contain the columns 'id', 'startLat', 'startLon', 'endLat', 'endLon' in WGS84 coordinates

nrOfNodes

Number of nodes the router is supposed to run on. Suggested to always use at max 1 core less than the total amount of cores in processor.

pathToBrouter

Path to installation folder of brouter.

profile

The brouter profile to be used in the routing.

optional

Optional arguments: A list containing a combination of column names which have to exactly match the following names: 'bikerPower', 'totalMass', 'dragCoefficient', 'rollingResistance', 'maxSpeed' #'

Value

A dataframe containing the route 'id', 'travelTime', 'distance', 'energy, 'avgSlopeUp, 'avgSlopeDown'


ivt-baug-ethz/brouterR documentation built on Dec. 9, 2024, 8:59 p.m.