Socket
Socket
Sign inDemoInstall

@public-transport/hafas-rest-client

Package Overview
Dependencies
61
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @public-transport/hafas-rest-client

Client for HAFAS rest.exe public transport APIs.


Version published
Weekly downloads
5
Maintainers
2
Install size
18.4 MB
Created
Weekly downloads
 

Readme

Source

hafas-rest-client

[WIP] Client for HAFAS rest.exe public transport APIs.

npm version ISC-licensed minimum Node.js version support me via GitHub Sponsors chat with me on Twitter

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-client

Usage

WIP, TODO.

Supported methods (so far):

  • journeys(origin, destination, [opt]) - get journeys between locations
  • refreshJourney(refreshToken, [opt]) - fetch up-to-date/more details of a journey
  • trip(tripId, [opt]) - fetch up-to-date/more details of a trip
  • dataInfo() - get information about the HAFAS instance (e.g. a list of operators and sub-products)

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.

Keywords

FAQs

Last updated on 29 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc