UrbanAnalyst / gtfsrouter

Routing and analysis engine for GTFS (General Transit Feed Specification) data
https://urbananalyst.github.io/gtfsrouter/
82 stars 17 forks source link

function "gtfs_traveltimes" not found #82

Closed stefan-overkamp closed 3 years ago

stefan-overkamp commented 3 years ago

library(gtfsrouter) berlin_gtfs_to_zip() tempfiles <- list.files (tempdir (), full.names = TRUE) filename <- tempfiles [grep ("vbb.zip", tempfiles)] gtfs <- extract_gtfs (filename) gtfs <- gtfs_timetable (gtfs, day = "Wednesday") # A pre-processing step to speed up queries x <- gtfs_traveltimes (gtfs, from = "Alexanderplatz", start_time_limits = c (12, 13) * 3600)

Fehler in gtfs_traveltimes(gtfs, from = "Alexanderplatz", start_time_limits = c(12, : konnte Funktion "gtfs_traveltimes" nicht finden

packageVersion("gtfsrouter") [1] ‘0.0.4’

Is there a special package version needed to try gtfsrouter like shown on FossGIS?

remotes::install_git("https://git.sr.ht/~mpadge/gtfsrouter") Fehler: Failed to install 'unknown package' from Git: kann URL 'https://git.sr.ht/~mpadge/gtfsrouter/raw/93c8b3e1eb035952f48ac9ae064d8592e3f8807a/DESCRIPTION' nicht öffnen

mpadge commented 3 years ago

Yes, sorry @stefan-overkamp, i was hoping to get new version on CRAN before today but didn't quite get there. In the meantime, you can just remotes::install_github("atfutures/gtfs-router") and all should work. Please close once all is okay for you

stefan-overkamp commented 3 years ago

Many thanks. All is okay. I had to install package hms too.