npm install --save zpcg
const zpcg =
This package contains data in the Friendly Public Transport Format and provides the following methods:
stations()to get a list of operated stations, such as
journeys(origin, destination, date = new Date())to get routes between stations. Please note that the API doesn't yet support interchange connections.
journeyLeg(legId, departureDate)to get all passed stations and prices for a given journey leg.
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.