diff --git a/articles/accessibility.html b/articles/accessibility.html index 750af312..0283e960 100644 --- a/articles/accessibility.html +++ b/articles/accessibility.html @@ -111,7 +111,7 @@

4.1 Building routable transport network with @@ -388,12 +388,12 @@

4.2 Accessibility analysis ) head(access) #> id opportunity percentile cutoff accessibility -#> 1: 89a90129d77ffff schools 50 60 30 -#> 2: 89a90129d77ffff healthcare 50 60 23 -#> 3: 89a90e9269bffff schools 50 60 26 -#> 4: 89a90e9269bffff healthcare 50 60 23 -#> 5: 89a9012806bffff schools 50 60 35 -#> 6: 89a9012806bffff healthcare 50 60 25

+#> 1: 89a9012b13bffff schools 50 60 16 +#> 2: 89a9012b13bffff healthcare 50 60 18 +#> 3: 89a90128107ffff schools 50 60 32 +#> 4: 89a90128107ffff healthcare 50 60 31 +#> 5: 89a90129963ffff schools 50 60 34 +#> 6: 89a90129963ffff healthcare 50 60 26

4.3 Routing analysis diff --git a/articles/time_window.html b/articles/time_window.html index 5bc8d8a6..b548e997 100644 --- a/articles/time_window.html +++ b/articles/time_window.html @@ -111,7 +111,7 @@ -

ps. Please keep in mind that the time_window only -affects the results when the GTFS feeds contain a -frequencies.txt table.

+

ps. Please keep in mind that the Monte Carlo draws in +time_window only affects the results when the GTFS feeds +contain a frequencies.txt table.

3.2 Accessibility with time_window. @@ -255,14 +255,14 @@

3.2 Accessibility with time_windo cutoffs = 45, departure_datetime = departure_datetime, progress = FALSE, - time_window = 30, + time_window = 60, percentiles = c(10, 20, 50, 70, 80) ) head(acc, n = 10) #> id opportunity percentile cutoff accessibility #> 1: 89a8100c603ffff schools 10 45 13 -#> 2: 89a8100c603ffff schools 20 45 11 +#> 2: 89a8100c603ffff schools 20 45 13 #> 3: 89a8100c603ffff schools 50 45 6 #> 4: 89a8100c603ffff schools 70 45 6 #> 5: 89a8100c603ffff schools 80 45 6 @@ -316,7 +316,7 @@

3.3 Travel time matrix with max_trip_duration = max_trip_duration, departure_datetime = departure_datetime, progress = TRUE, - time_window = 20, + time_window = 60, percentiles = c(10, 20, 50, 70, 80) ) @@ -388,16 +388,45 @@

3.4 Expanded travel time #> 9: 89a8100c603ffff 89a8100c28bffff 14:01:00 4 4491-10 #> 10: 89a8100c603ffff 89a8100c28bffff 14:01:00 5 4491-10 #> total_time -#> 1: 53.8 -#> 2: 37.3 -#> 3: 38.1 -#> 4: 42.2 -#> 5: 34.7 -#> 6: 45.8 -#> 7: 43.6 -#> 8: 37.2 -#> 9: 40.5 -#> 10: 43.8

+#> 1: 46.1 +#> 2: 43.2 +#> 3: 43.1 +#> 4: 39.7 +#> 5: 34.8 +#> 6: 46.2 +#> 7: 52.0 +#> 8: 39.2 +#> 9: 38.4 +#> 10: 35.0 + +
+

3.5 Detailed itineraries with time_window. +

+

In the detailed_itineraries() function, the number of +Monte Carlo draws per minute is hardcoded to 1. This means that the +function simulates only one departure per minute within the +time_window. So if you set a time_window of 10 +minutes, it would simulate 10 departures, one in each minute. This is +largely because the time_window behaves slightly +differently here.

+

See, functions like travel_time_matrix() or +accessibility(), for example, return estimates of travel +times or accessibility. In these cases, when we use the +time_window parameter, these functions output selected +percentiles of those values generated based on the distribution of all +estimates that result from the multiple trip simulations.

+

The detailed_itineraries(), on the other hand, does not +return travel times or accessibility estimates. It returns alternatives +of trip journeys. In this case, when we use the time_window +parameter, the function will return the optimal trip itinerary found +within the time window. It can also return the optimal route along with +multiple sub-optimal journey alternatives found within the time window +if the the user sets shortest_path = FALSE.

+

obs. Mind you that detailed_itineraries() +cannot be computed for public transport trips if the the network uses a +frequencies-based GTFS feed. In these cases, we suggest using +gtfstools::frequencies_to_stop_times() to create a suitable +feed.

Cleaning up after usage diff --git a/articles/time_window_files/figure-html/unnamed-chunk-4-1.png b/articles/time_window_files/figure-html/unnamed-chunk-4-1.png index c84e1024..f17de8d6 100644 Binary files a/articles/time_window_files/figure-html/unnamed-chunk-4-1.png and b/articles/time_window_files/figure-html/unnamed-chunk-4-1.png differ diff --git a/articles/travel_time_matrix.html b/articles/travel_time_matrix.html index 60de15ea..353a261a 100644 --- a/articles/travel_time_matrix.html +++ b/articles/travel_time_matrix.html @@ -111,7 +111,7 @@
diff --git a/pkgdown.yml b/pkgdown.yml index 3724f5f1..13bcafef 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -11,5 +11,5 @@ articles: r5r: r5r.html time_window: time_window.html travel_time_matrix: travel_time_matrix.html -last_built: 2023-11-24T01:53Z +last_built: 2023-11-25T11:23Z diff --git a/reference/detailed_itineraries.html b/reference/detailed_itineraries.html index 0dd5a3b0..4b531d46 100644 --- a/reference/detailed_itineraries.html +++ b/reference/detailed_itineraries.html @@ -178,11 +178,14 @@

Arguments

suboptimal_minutes

A number. The difference in minutes that each non-optimal RAPTOR branch can have from the optimal branch without being -disregarded by the routing algorithm. This argument emulates the real-life -behaviour that makes people want to take a path that is technically not -optimal (in terms of travel time, for example) for some practical reasons -(e.g. mode preference, safety, etc). In practice, the higher this value, -the more itineraries will be returned in the final result.

+disregarded by the routing algorithm. If, for example, users set +suboptimal_minutes = 10, the routing algorithm will consider sub-optimal +routes that arrive up to 10 minutes after the arrival of the optimal one. +This argument emulates the real-life behaviour that makes people want to +take a path that is technically not optimal in terms of travel time, for +example, for some practical reasons (e.g. mode preference, safety, etc). +In practice, the higher this value, the more itineraries will be returned +in the final result.

fare_structure
diff --git a/reference/download_r5.html b/reference/download_r5.html index 7839477e..a967420b 100644 --- a/reference/download_r5.html +++ b/reference/download_r5.html @@ -134,8 +134,8 @@

Examples

library(r5r)
 
 download_r5(version = "6.9.0", temp_dir = TRUE)
-#> Downloading R5 jar file to /tmp/Rtmp4yp9cV/r5-v6.9-all.jar
-#> [1] "/tmp/Rtmp4yp9cV/r5-v6.9-all.jar"
+#> Downloading R5 jar file to /tmp/RtmpiyZTME/r5-v6.9-all.jar
+#> [1] "/tmp/RtmpiyZTME/r5-v6.9-all.jar"
 

diff --git a/reference/isochrone-1.png b/reference/isochrone-1.png index 73fe2a01..9deaf655 100644 Binary files a/reference/isochrone-1.png and b/reference/isochrone-1.png differ diff --git a/reference/isochrone.html b/reference/isochrone.html index 76de51bb..ed68f2e7 100644 --- a/reference/isochrone.html +++ b/reference/isochrone.html @@ -372,12 +372,12 @@

Examples

#> Bounding box: xmin: -51.2488 ymin: -30.0973 xmax: -51.1743 ymax: -30.0155 #> Geodetic CRS: WGS 84 #> id isochrone polygons -#> 1 89a90128107ffff 100 POLYGON ((-51.2484 -30.0909... -#> 2 89a90128107ffff 90 POLYGON ((-51.2483 -30.0831... +#> 1 89a90128107ffff 100 POLYGON ((-51.2486 -30.0908... +#> 2 89a90128107ffff 90 POLYGON ((-51.2476 -30.086,... #> 3 89a90128107ffff 80 POLYGON ((-51.2464 -30.081,... #> 4 89a90128107ffff 70 POLYGON ((-51.2435 -30.078,... #> 5 89a90128107ffff 60 POLYGON ((-51.2311 -30.0793... -#> 6 89a90128107ffff 50 POLYGON ((-51.2391 -30.0702... +#> 6 89a90128107ffff 50 POLYGON ((-51.2393 -30.0701... colors <- c('#ffe0a5','#ffcb69','#ffa600','#ff7c43','#f95d6a', '#d45087','#a05195','#665191','#2f4b7c','#003f5c')