GTFS Journey Planner
Node/TypeScript library that calculates journey plans using a GTFS dataset. The algorithm is inspired by Hannah Bast's transfer patterns. It assumes that the transfer patterns have been pre-generated and only performs real-time queries. A transfer pattern generator is available here.
At present it is only provided as a library. If you would like an API you might try the PHP or Scala versions
Loading trip data from a MySQL database is currently supported, loading from a GTFS zip will be added in the future.
Testing
npm install
npm test
Usage
const container = new Container();
const jp = await container.getJourneyPlanner();
const results = await jp.planJourneys(["StopA"], ["StopB"], "2017-12-25");
Contributing
Issues and PRs are very welcome.
License
This software is licensed under GNU GPLv3.
Copyright Linus Norton.