A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipeaGIT/r5r/issues/353 below:

max_walk_time overwrites max_trip_duration in travel_time_matrix when mode = "WALK" · Issue #353 · ipeaGIT/r5r · GitHub

Hi,

I am working with travel times for Prague (CZ) and I It looks like the max_walk_time is overwriting max_trip_duration when mode is only WALK.

The package documentation says max_walk_time should only be applied when mode is TRANSIT.

Reproducible example here
library(r5r)

# build transport network
r5r_core <- setup_r5("USING ONLY OSM FROM GEOFRABIK")

# load origin/destination points
origins<- "SEE FILE ATTACHED"
destinations <- "SEE FILE ATTACHED"

# IF max_walk_time = 15 the result has 5,985 lines
# IF max_walk_time = max_trip_duration = 120L the result has 474,288 lines
ttm <- travel_time_matrix(
                      mode = "WALK",
                      output_dir = NULL,
                      r5r_core = r5r_core,
                      origins = origins,
                      destinations = destinations,
                      hour_departure = "07:30:00",
                      time_window = 10L,         # time window (minutes) 
                      percentiles = 50L,         # get median travel times
                      mode_egress = "WALK",
                      fare_structure = NULL,     # if we want to include travel cost
                      max_fare = Inf,            # max value that trips can cost
                      max_walk_time = 15, # 1km  # max time (minutes) to access and egress the transit network
                      max_bike_time = Inf,       # max time (minutes) to access and egress the transit network
                      max_car_time = Inf,        # max time (minutes) to access and egress the transit network
                      max_trip_duration = 120L,  # max trip duration (minutes) - 2 hours
                      walk_speed = 4,            # Average walk speed in km/h 
                      bike_speed = 16,           # Average bike speed in km/h 
                      max_rides = 3,             # max number of public transport rides allowed in the same trip
                      max_lts = 2,               # maximum level of traffic stress that cyclists will tolerate
                      draws_per_minute = 5L,
                      n_threads = Inf,
                      verbose = FALSE,
                      progress = FALSE)

Files:
CZ001F_pointspop1000.csv
OSM network from geofrabik.de


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4