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_fasta

v6.0.0

Published

DataFire integration for FaSta - Station Facilities Status

Downloads

4

Readme

@datafire/deutschebahn_fasta

Client library for FaSta - Station Facilities Status

Installation and Usage

npm install --save @datafire/deutschebahn_fasta
let deutschebahn_fasta = require('@datafire/deutschebahn_fasta').create({
  UserSecurity: ""
});

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

Description

A RESTful webservice to retrieve data about the operational state of public elevators and escalators in german railway stations.

Actions

findFacilities

Access to public facilities (escalators and elevators) in railway stations

deutschebahn_fasta.findFacilities({}, context)

Input

  • input object
    • type array: Type of the facility.
    • state array: Operational state of the facility.
    • equipmentnumbers array: List of equipmentnumbers to select.
    • stationnumber integer: Number of the station the facilities belong to.
    • area array: Geo coordinate rectangle in WGS84-format to filter facilities by geographical position. Parameters must be 4 numbers exactly as follows: longitudeWest, latitudeSouth, longitudeEast, latitudeNorth.

Output

getFacilityByEquipmentNumber

Returns the facility identified by its equipmentnumber.

deutschebahn_fasta.getFacilityByEquipmentNumber({
  "equipmentnumber": 0
}, context)

Input

  • input object
    • equipmentnumber required integer: Equipmentnumber of the facility to fetch.

Output

findStationByStationNumber

Returns information about a station (and its corresponding facilities) identified by a stationnumber.

deutschebahn_fasta.findStationByStationNumber({
  "stationnumber": 0
}, context)

Input

  • input object
    • stationnumber required integer: Number of the station to fetch.

Output

Definitions

facility

  • facility object: A facility provided by this API is either a public elevator or escalator located at a German railway station.
    • description string: Textual description of the facility.
    • equipmentnumber required integer: Unique identifier of the facility.
    • geocoordX number: Longitude component of geocoordinate in WGS84 format.
    • geocoordY number: Latitude component of geocoordinate in WGS84 format.
    • operatorname string: The name of the operator of the facility.
    • state required string (values: ACTIVE, INACTIVE, UNKNOWN): Operational state of the facility.
    • stateExplanation string: Detailed description of the state.
    • stationnumber required integer: Number of the station the facility belongs to.
    • type required string (values: ESCALATOR, ELEVATOR): Type of the facility.

station

  • station object
    • facilities array
    • name required string: Name of the station.
    • stationnumber required integer: Unique identifier of the station.