This package has been deprecated

Author message:

Package no longer supported. Contact [email protected] for more info.

journey-planner

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.

install

npm i journey-planner

Downloadsweekly downloads

1

version

2.0.2

license

GPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability