npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/deutschebahn_fahrplan

v6.0.0

Published

DataFire integration for Fahrplan-Free

Downloads

5

Readme

@datafire/deutschebahn_fahrplan

Client library for Fahrplan-Free

Installation and Usage

npm install --save @datafire/deutschebahn_fahrplan
let deutschebahn_fahrplan = require('@datafire/deutschebahn_fahrplan').create();

.then(data => {
  console.log(data);
});

Description

A RESTful webservice to request a railway journey - FREE plan with restricted access (max. 10 requests per minute). Please ignore the message in the API Console about the access token.

Register to use an less restricted version, which requires an access token.

Actions

arrivalBoard.id.get

Get arrival board at a given location at a given daten and time.

deutschebahn_fahrplan.arrivalBoard.id.get({
  "id": "",
  "date": ""
}, context)

Input

  • input object
    • id required string: Id of location. Use attribute 'id' from the result of 'location'
    • date required string: Date and time in ISO-8601 format, yyyy-mm-ddThh:mm:ss, example: 2017-04-01 or 2017-04-01T10:30

Output

departureBoard.id.get

Get departure board at a given location at a given daten and time.

deutschebahn_fahrplan.departureBoard.id.get({
  "id": "",
  "date": ""
}, context)

Input

  • input object
    • id required string: Id of a location. Use attribute 'id' from the result of 'location'
    • date required string: Date and time in ISO-8601 format, yyyy-mm-ddThh:mm:ss, example: 2017-04-01 or 2017-04-01T10:30

Output

journeyDetails.id.get

Retrieve details of a journey. The id of journey should come from an arrival board or a departure board.

deutschebahn_fahrplan.journeyDetails.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: Id of a journey. Use attribute 'detailsId' from the result of 'arrivalBoard' or 'departureBoard'

Output

location.name.get

Get information about locations matching the given name or name fragment

deutschebahn_fahrplan.location.name.get({
  "name": ""
}, context)

Input

  • input object
    • name required string: Name or name fragment of a location

Output

Definitions

Board

  • Board object
    • boardId required string
    • dateTime required string
    • detailsId required string
    • name required string: Name of train
    • origin required string
    • stopId required string
    • stopName required string
    • track required string
    • type required string

BoardResponse

  • BoardResponse object
    • boards required array

ErrorModel

  • ErrorModel object
    • code required integer
    • internal_code integer
    • internal_message string
    • message required string

JourneyResponse

  • JourneyResponse object

Location

  • Location object
    • id required string: id of location (eva-number), example: 8000105
    • lat required number: latitude, example: 50.107149
    • lon required number: longitude, example: 8.663785
    • name required string: Name of location, example: Frankfurt(Main)Hbf

LocationResponse

  • LocationResponse object

TrainLocation

  • TrainLocation object
    • arrTime required string
    • depTime required string
    • lat required number
    • lon required number
    • operator required string
    • stopId required string
    • stopName required string
    • train required string
    • type required string