assign_max_street_time: Assign max street time from walk/bike distance and speed

View source: R/assign.R

assign_max_street_timeR Documentation

Assign max street time from walk/bike distance and speed

Description

Checks the time duration and speed inputs and converts them to distance.

Usage

assign_max_street_time(max_time, speed, max_trip_duration, mode)

Arguments

max_time

A numeric of length 1. Maximum walking distance (in meters) for the whole trip. Passed from routing functions.

speed

A numeric of length 1. Average walk speed in km/h. Defaults to 3.6 Km/h. Passed from routing functions.

max_trip_duration

A numeric of length 1. Maximum trip duration in seconds. Defaults to 120 minutes (2 hours). Passed from routing functions.

mode

A string. Either "bike" or "walk".

Value

An integer representing the maximum number of minutes walking.

See Also

Other assigning functions: assign_decay_function(), assign_departure(), assign_drop_geometry(), assign_max_trip_duration(), assign_mode(), assign_opportunities(), assign_points_input(), assign_shortest_path()


r5r documentation built on May 29, 2024, 7:30 a.m.