@datafire/deutschebahn_reisezentren
v6.0.0
Published
DataFire integration for Reisezentren-API
Downloads
3
Readme
@datafire/deutschebahn_reisezentren
Client library for Reisezentren-API
Installation and Usage
npm install --save @datafire/deutschebahn_reisezentren
let deutschebahn_reisezentren = require('@datafire/deutschebahn_reisezentren').create();
.then(data => {
console.log(data);
});
Description
This REST-API enables you to query information about travel centers in Germany.
Actions
reisezentren.get
Get all station infos
deutschebahn_reisezentren.reisezentren.get({}, context)
Input
- input
object
- name
string
: A station name or part of it
- name
Output
- output TravelCenterList
reisezentren.loc.lat.lon.get
Get information about a station near a location
deutschebahn_reisezentren.reisezentren.loc.lat.lon.get({
"lat": 0,
"lon": 0
}, context)
Input
- input
object
- lat required
number
: Latitude - lon required
number
: Longitude
- lat required
Output
- output TravelCenter
reisezentren.loc.lat.lon.dist.get
Get stations in a given radius
deutschebahn_reisezentren.reisezentren.loc.lat.lon.dist.get({
"lat": 0,
"lon": 0,
"dist": 0
}, context)
Input
- input
object
- lat required
number
: Latitude - lon required
number
: Longitude - dist required
number
: Radius
- lat required
Output
- output TravelCenter
reisezentren.id.get
Get information about a specific station
deutschebahn_reisezentren.reisezentren.id.get({
"id": ""
}, context)
Input
- input
object
- id required
string
: Station id
- id required
Output
- output TravelCenter
Definitions
Error
- Error
object
- code
integer
- message
string
- code
OpeningTime
- OpeningTime
array
- items
string
- items
TravelCenter
- TravelCenter
object
- address
string
: Street address of travel center - city
string
: City of travel center - id
integer
: Identifying number - lat
number
: Latitude of travel center location - lon
number
: Longitude of travel center location - name
string
: Name of travel center - openingTimes
object
: Opening times of the travel center, ordered by week day- fri OpeningTime
- mon OpeningTime
- sat OpeningTime
- sun OpeningTime
- thu OpeningTime
- tue OpeningTime
- wed OpeningTime
- postCode
string
: Post code of travel center - type
string
(values: Reisezentrum, Mobility Center): Type of travel center
- address
TravelCenterList
- TravelCenterList
array
- items TravelCenter