Skip to content

Commit

Permalink
Closes #193
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Aug 19, 2021
1 parent 34c6983 commit 8276779
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 39 deletions.
3 changes: 3 additions & 0 deletions r-package/NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ from R5 as simple features. Closes [#179](https://github.com/ipeaGIT/r5r/issues/
- Improved documentation of parameter `departure_datetime` to clarify the parameter must be set to local time. Closes [#188](https://github.com/ipeaGIT/r5r/issues/188)
- Improved documentation regarding personalized LTS values. [Closes #190]( https://github.com/ipeaGIT/r5r/issues/190).
- Improved documentation of `transit_network_to_sf()` regarding stops that are not snapped to road network. [Closes #192]( https://github.com/ipeaGIT/r5r/issues/192).
- Improved documentation of `max_walking_dist` and `max_cycling_dist` parameters. [Closes #193]( https://github.com/ipeaGIT/r5r/issues/193).



-------------------------------------------------------
# r5r v0.5.0
Expand Down
30 changes: 24 additions & 6 deletions r-package/R/accessibility.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,30 @@
#' when using the 'fixed exponential' function.
#' @param decay_value numeric. Extra parameter to be passed to the selected
#' `decay_function`.
#' @param max_walk_dist numeric. Maximum walking distance (in meters) for the
#' whole trip. Defaults to no restrictions on walking, as
#' long as \code{max_trip_duration} is respected.
#' @param max_bike_dist numeric. Maximum cycling distance (in meters) for the
#' whole trip. Defaults to no restrictions on cycling, as
#' long as \code{max_trip_duration} is respected.
#' @param max_walk_dist numeric. Maximum walking distance (in meters) to access
#' and egress the transit network, or to make transfers
#' within the network. Defaults to no restrictions as long
#' as `max_trip_duration` is respected. The max distance is
#' considered separately for each leg (e.g. if you set
#' `max_walk_dist` to 1000, you could potentially walk up
#' to 1 km to reach transit, and up to _another_ 1 km to
#' reach the destination after leaving transit). Obs: if you
#' want to set the maximum walking distance considering
#' walking-only trips you have to set the `max_trip_duration`
#' accordingly (e.g. to set a distance of 1 km assuming a
#' walking speed of 3.6 km/h you have to set `max_trip_duration = 1 / 3.6 * 60`).
#' @param max_bike_dist numeric. Maximum cycling distance (in meters) to access
#' and egress the transit network. Defaults to no
#' restrictions as long as `max_trip_duration` is respected.
#' The max distance is considered separately for each leg
#' (e.g. if you set `max_bike_dist` to 1000, you could
#' potentially cycle up to 1 km to reach transit, and up
#' to _another_ 1 km to reach the destination after leaving
#' transit). Obs: if you want to set the maximum cycling
#' distance considering cycling-only trips you have to set
#' the `max_trip_duration` accordingly (e.g. to set a
#' distance of 5 km assuming a cycling speed of 12 km/h you
#' have to set `max_trip_duration = 5 / 12 * 60`).
#' @param max_trip_duration numeric. Maximum trip duration in minutes. Defaults
#' to 120 minutes (2 hours).
#' @param walk_speed numeric. Average walk speed in km/h. Defaults to 3.6 km/h.
Expand Down
30 changes: 24 additions & 6 deletions r-package/R/detailed_itineraries.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,30 @@
#' networks, please check \code{calendar.txt} within
#' the GTFS file for valid dates. See details for
#' further information on how datetimes are parsed.
#' @param max_walk_dist numeric. Maximum walking distance (in meters) for the
#' whole trip. Defaults to no restrictions on walking, as
#' long as \code{max_trip_duration} is respected.
#' @param max_bike_dist numeric. Maximum cycling distance (in meters) for the
#' whole trip. Defaults to no restrictions on cycling, as
#' long as \code{max_trip_duration} is respected.
#' @param max_walk_dist numeric. Maximum walking distance (in meters) to access
#' and egress the transit network, or to make transfers
#' within the network. Defaults to no restrictions as long
#' as `max_trip_duration` is respected. The max distance is
#' considered separately for each leg (e.g. if you set
#' `max_walk_dist` to 1000, you could potentially walk up
#' to 1 km to reach transit, and up to _another_ 1 km to
#' reach the destination after leaving transit). Obs: if you
#' want to set the maximum walking distance considering
#' walking-only trips you have to set the `max_trip_duration`
#' accordingly (e.g. to set a distance of 1 km assuming a
#' walking speed of 3.6 km/h you have to set `max_trip_duration = 1 / 3.6 * 60`).
#' @param max_bike_dist numeric. Maximum cycling distance (in meters) to access
#' and egress the transit network. Defaults to no
#' restrictions as long as `max_trip_duration` is respected.
#' The max distance is considered separately for each leg
#' (e.g. if you set `max_bike_dist` to 1000, you could
#' potentially cycle up to 1 km to reach transit, and up
#' to _another_ 1 km to reach the destination after leaving
#' transit). Obs: if you want to set the maximum cycling
#' distance considering cycling-only trips you have to set
#' the `max_trip_duration` accordingly (e.g. to set a
#' distance of 5 km assuming a cycling speed of 12 km/h you
#' have to set `max_trip_duration = 5 / 12 * 60`).
#' @param max_trip_duration numeric. Maximum trip duration in minutes. Defaults
#' to 120 minutes (2 hours).
#' @param walk_speed numeric. Average walk speed in km/h. Defaults to 3.6 km/h.
Expand Down
30 changes: 24 additions & 6 deletions r-package/R/travel_time_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,30 @@
#' than 15 minutes. Only the first 5 cut points of the percentiles
#' are considered. For more details, see R5 documentation at
#' 'https://docs.conveyal.com/analysis/methodology#accounting-for-variability'
#' @param max_walk_dist numeric. Maximum walking distance (in meters) for the
#' whole trip. Defaults to no restrictions on walking, as
#' long as \code{max_trip_duration} is respected.
#' @param max_bike_dist numeric. Maximum cycling distance (in meters) for the
#' whole trip. Defaults to no restrictions on cycling, as
#' long as \code{max_trip_duration} is respected.
#' @param max_walk_dist numeric. Maximum walking distance (in meters) to access
#' and egress the transit network, or to make transfers
#' within the network. Defaults to no restrictions as long
#' as `max_trip_duration` is respected. The max distance is
#' considered separately for each leg (e.g. if you set
#' `max_walk_dist` to 1000, you could potentially walk up
#' to 1 km to reach transit, and up to _another_ 1 km to
#' reach the destination after leaving transit). Obs: if you
#' want to set the maximum walking distance considering
#' walking-only trips you have to set the `max_trip_duration`
#' accordingly (e.g. to set a distance of 1 km assuming a
#' walking speed of 3.6 km/h you have to set `max_trip_duration = 1 / 3.6 * 60`).
#' @param max_bike_dist numeric. Maximum cycling distance (in meters) to access
#' and egress the transit network. Defaults to no
#' restrictions as long as `max_trip_duration` is respected.
#' The max distance is considered separately for each leg
#' (e.g. if you set `max_bike_dist` to 1000, you could
#' potentially cycle up to 1 km to reach transit, and up
#' to _another_ 1 km to reach the destination after leaving
#' transit). Obs: if you want to set the maximum cycling
#' distance considering cycling-only trips you have to set
#' the `max_trip_duration` accordingly (e.g. to set a
#' distance of 5 km assuming a cycling speed of 12 km/h you
#' have to set `max_trip_duration = 5 / 12 * 60`).
#' @param max_trip_duration numeric. Maximum trip duration in minutes. Defaults
#' to 120 minutes (2 hours).
#' @param walk_speed numeric. Average walk speed in km/h. Defaults to 3.6 km/h.
Expand Down
32 changes: 25 additions & 7 deletions r-package/man/accessibility.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 25 additions & 7 deletions r-package/man/detailed_itineraries.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 25 additions & 7 deletions r-package/man/travel_time_matrix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8276779

Please sign in to comment.