0.3.1 • Published 5 years ago
@public-transport/hafas-rest-client v0.3.1
hafas-rest-client
WIP Client for HAFAS rest.exe public transport APIs.
Note: hafas-client is a client for mgate.exe HAFAS APIs (a.k.a. "mobile APIs").
Background
See hafas-client's background info.
Installation
npm install @public-transport/hafas-rest-clientUsage
WIP, TODO.
Supported methods (so far):
journeys(origin, destination, [opt])- get journeys between locationsrefreshJourney(refreshToken, [opt])- fetch up-to-date/more details of ajourneytrip(tripId, [opt])- fetch up-to-date/more details of atripdataInfo()- get information about the HAFAS instance (e.g. a list of operators and sub-products)
Related
See hafas-client's related repos.
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.