Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mem48 committed May 5, 2024
1 parent 0b3356f commit 9375c28
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

* Fixed bug in `otp_isochrone` when using `fromID`
* Slightly faster routing with large batches
* More mode choices in `otp_plan`
* More mode choices in `otp_plan` and `otp_isochrone`


# opentripplanner 0.5.1

Expand Down
16 changes: 9 additions & 7 deletions R/otp-isochrone-batch.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
#' data frame of POINTS
#' @param fromID character vector same length as fromPlace
#' @param mode character vector of one or more modes of travel valid values
#' TRANSIT, WALK, BICYCLE, CAR, BUS, RAIL, SUBWAY, TRAM, FERRY, BICYCLE_RENT,
#' BICYCLE_PARK, CAR_PARK, CABLE_CAR, GONDOLA, FUNICULAR, AIRPLANE, default
#' "TRANSIT","BUS", "RAIL", "SUBWAY","TRAM", "FERRY", "GONDOLA", "FUNICULAR",
#' "AIRPLANE", "CABLE_CAR", "WALK", "BICYCLE", "BICYCLE_RENT", "BICYCLE_PARK",
#' "CAR", "CAR_PARK", "CAR_HAIL", "CARPOOL", "CAR_DROPOFF", "CAR_PICKUP", default
#' CAR. Not all combinations are valid e.g. c("WALK","BUS") is valid but
#' c("WALK","CAR") is not.
#' @param date_time POSIXct, a date and time, defaults to current
Expand Down Expand Up @@ -64,11 +65,12 @@ otp_isochrone <- function(otpcon = NA,
mode <- toupper(mode)
checkmate::assert_subset(mode,
choices = c(
"TRANSIT", "WALK", "BICYCLE",
"CAR", "BUS", "RAIL", "SUBWAY",
"TRAM", "FERRY","BICYCLE_RENT",
"BICYCLE_PARK","CAR_PARK","CABLE_CAR",
"GONDOLA","FUNICULAR","AIRPLANE"
"TRANSIT","BUS", "RAIL", "SUBWAY","TRAM", "FERRY",
"GONDOLA","FUNICULAR","AIRPLANE","CABLE_CAR",
"WALK",
"BICYCLE","BICYCLE_RENT","BICYCLE_PARK",
"CAR","CAR_PARK",
"CAR_HAIL","CARPOOL","CAR_DROPOFF","CAR_PICKUP"
),
empty.ok = FALSE
)
Expand Down
5 changes: 3 additions & 2 deletions man/otp_isochrone.Rd

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

7 changes: 4 additions & 3 deletions man/otp_plan.Rd

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

2 changes: 1 addition & 1 deletion man/otp_surface_isochrone.Rd

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

0 comments on commit 9375c28

Please sign in to comment.