UrbanAnalyst / m4ra

many-to-many multi-modal routing aggregator
https://urbananalyst.github.io/m4ra/
15 stars 2 forks source link

GTFS matrix #5

Closed mpadge closed 2 years ago

mpadge commented 2 years ago

Need a routine to calculate full travel matrix for a given time window.

mpadge commented 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.