🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

db-meinfernbus-cities

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-meinfernbus-cities

Get all DB stations located in the same german city as the given Flixbus/Meinfernbus station/region, and vice versa.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
13
225%
Maintainers
1
Weekly downloads
 
Created
Source

db-meinferbus-cities

Get all DB stations located in the same german city as the given Flixbus/Meinfernbus station or region, and vice versa.

npm version Build Status Greenkeeper badge dependency status license chat on gitter

Installation

npm install db-meinfernbus-cities

Usage

Only works for german cities/stations at the moment, other (neighbouring) european countries will hopefully be supported at some point in the future, though.

const adapter = require('db-meinfernbus-cities')

This package contains data in the Friendly Public Transport Format.

  • toDB(meinfernbusRegionOrStation) to get all DB stations for a given Meinfernbus station or region
  • toMFB(dbStation) to get all Meinfernbus stations for a given DB station
  • toMFBRegions(dbStation) to get all Meinfernbus regions for a given DB station
const adapter = require('db-meinfernbus-cities')

adapter.toDB({type: 'region', id: '88'}).then(…) // list of db station objects for meinfernbus region Berlin
adapter.toDB({type: 'station', id: '89'}).then(…) // list of db station objects for meinfernbus station Bremen
adapter.toDB('89').then(…) // will be interpreted as {type: 'station', id: '89'}

adapter.toMFB({type: 'station', id: '8012666'}).then(…) // list of mfb station objects for Potsdam Hbf
adapter.toMFB('8012666').then(…) // will be interpreted as {type: 'station', id: '8012666'}
adapter.toMFBRegions('8002045').then(…) // list of mfb region objects for Frankfurt(-Eschersheim)

Similar Projects

Contributing

If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.

Keywords

bus

FAQs

Package last updated on 23 Mar 2018

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