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.
Loading trip data from a MySQL database is currently supported, loading from a GTFS zip will be added in the future.
npm install npm test
const container = new Container(); const jp = await container.getJourneyPlanner(); const results = await jp.planJourneys(["StopA"], ["StopB"], "2017-12-25");
Issues and PRs are very welcome.
This software is licensed under GNU GPLv3.
Copyright Linus Norton.