Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oebb-hafas

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oebb-hafas

JavaScript client for the ÖBB HAFAS API.

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

oebb-hafas

Client for the Austrian Railways (ÖBB) HAFAS API. It acts as a consistent and straightforward interface on top of a verbose API.

This project is actually a thin wrapper around hafas-client. Its docs document the API in general.

npm version license chat on gitter

Installing

npm install oebb-hafas

API

Check the docs for hafas-client as well as the ÖBB-specific customisations.

Getting Started

const hafas = require('oebb-hafas')('your-user-agent')

As an example, we will search for a route from Wien Westbahnhof to Salzburg Hbf. To get the station ids, use locations(query, [opt]).

client.journeys('1291501', '8100002')
.then((journeys) => console.log(journeys[0]))
.catch(console.error)

Similar Projects

  • oebb – Find ticket prices for ÖBB journeys.
  • db-hafas – Client for the German Railways (DB).
  • vbb-hafas – Client for the Berlin & Brandenburg public transport service (VBB).

Contributing

If you found a bug or want to propose a feature, feel free to visit the issues page.

Keywords

FAQs

Package last updated on 13 Aug 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc