This package has been deprecated

Author message:

Package no longer supported. Contact support@npmjs.com for more info.

journey-planner
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • 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.

Dependents (0)

Package Sidebar

Install

npm i journey-planner

Weekly Downloads

2

Version

2.0.2

License

GPL-3.0

Unpacked Size

104 kB

Total Files

58

Last publish

Collaborators

  • npm