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

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(…)
adapter.toDB({type: 'station', id: '89'}).then(…)
adapter.toDB('89').then(…)
adapter.toMFB({type: 'station', id: '8012666'}).then(…)
adapter.toMFB('8012666').then(…)
adapter.toMFBRegions('8002045').then(…)
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.