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

set_speed

Set walk and bike speed


Description

This function receives the walk and bike 'speed' inputs in Km/h from routing functions above and converts them to meters per second, which is then used to set these speed profiles in r5r JAR.

Usage

set_speed(r5r_core, speed, mode)

Arguments

r5r_core

a rJava object to connect with R5 routing engine

speed

A numeric representing the speed in km/h.

mode

Either "bike" or "walk".

Value

No return value, called for side effects.

See Also


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.