Nefarious Plastic Mannequins
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

journey-planner

2.0.0 • Public • Published

GTFS Journey Planner

Travis npm npm David

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.

install

npm i journey-planner

Downloadsweekly downloads

458

version

2.0.0

license

GPL-3.0

repository

githubgithub

last publish

collaborators

  • avatar