Closed mpadge closed 2 years ago
That adds the main function and tests. It's pure R, and probably not worth the minimal gains that might be possible through converting the whole thing to C++. One of the biggest efficiency gains is liikely to be returning the direct output of gtfsrouter::rcpp_traveltimes()
, rather than the post-processed version return from the exported R function (as a data.frame
). It's nevertheless already pretty darn fast, at just over 1 minute on a sample feed of slightly over 2,000 stops.
Need a routine to calculate full travel matrix for a given time window.