Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otp_plan() produces an error when using OTP 2.2 #102

Closed
jamiedtor opened this issue Jan 19, 2023 · 1 comment
Closed

otp_plan() produces an error when using OTP 2.2 #102

jamiedtor opened this issue Jan 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jamiedtor
Copy link

Describe the bug
otp_plan produces an error when using OTP 2.2 and fails to return an itinerary.

The error is:

2023-01-18 22:01:56 sending 1 routes requests using 14 threads
Done in 0 mins
2023-01-18 22:01:56 processing results
Error in .f(itineraries = .l[[1L]][[1L]], fp = .l[[2L]][[1L]], tp = .l[[3L]][[1L]], :
unused argument (.progress = TRUE)

To Reproduce

library(opentripplanner)
path_data <- file.path(tempdir(), "OTP")
dir.create(path_data)
path_otp <- otp_dl_jar(version = "2.2.0")
otp_dl_demo(path_data)
log1 <- otp_build_graph(otp = path_otp, dir = path_data)
log2 <- otp_setup(otp = path_otp, dir = path_data)
otpcon <- otp_connect(timezone = "Europe/London")
route <- otp_plan(otpcon,               # Route between two lon/lat coordinates 
                  fromPlace = c(-1.17502, 50.64590),  
                  toPlace = c(-1.15339, 50.72266),
                  mode = c("WALK","TRANSIT")) 

Expected behavior
Expected to return a walk-transit route between the from and to coordinates using the demo data.

System
Please paste sessionInfo() here:
sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C LC_TIME=English_United States.utf8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] opentripplanner_0.5

loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 pillar_1.8.1 compiler_4.2.1 progressr_0.13.0 class_7.3-20 tools_4.2.1 digest_0.6.29
[8] lifecycle_1.0.3 tibble_3.1.8 checkmate_2.1.0 pkgconfig_2.0.3 rlang_1.0.6 DBI_1.1.3 cli_3.4.1
[15] rstudioapi_0.14 curl_4.3.3 parallel_4.2.1 e1071_1.7-11 dplyr_1.0.10 generics_0.1.3 vctrs_0.4.2
[22] classInt_0.4-8 grid_4.2.1 tidyselect_1.2.0 glue_1.6.2 sf_1.0-8 R6_2.5.1 fansi_1.0.3
[29] tidyr_1.2.1 purrr_0.3.5 magrittr_2.0.3 backports_1.4.1 units_0.8-0 assertthat_0.2.1 utf8_1.2.2
[36] KernSmooth_2.23-20 proxy_0.4-27 RcppSimdJson_0.1.8 rjson_0.2.21

Additional context
Add any other context about the problem here.

@jamiedtor jamiedtor added the bug Something isn't working label Jan 19, 2023
@jamiedtor
Copy link
Author

Problem resolved: The purrr package was not up to date. After updating all dependencies, the call to OTP 2.2 routes properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant