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 =
This package contains data in the Friendly Public Transport Format.
toDB(meinfernbusRegionOrStation)
to get all DB stations for a given Meinfernbusstation
orregion
toMFB(dbStation)
to get all Meinfernbusstation
s for a given DBstation
toMFBRegions(dbStation)
to get all Meinfernbusregion
s for a given DBstation
const adapter = adapter // list of db station objects for meinfernbus region Berlinadapter // list of db station objects for meinfernbus station Bremenadapter // will be interpreted as {type: 'station', id: '89'} adapter // list of mfb station objects for Potsdam Hbfadapter // will be interpreted as {type: 'station', id: '8012666'}adapter // list of mfb region objects for Frankfurt(-Eschersheim)
Similar Projects
- meinfernbus – JavaScript client for the Flixbus/Meinfernbus API.
- search-meinfernbus-locations - Search for Flixbus/MeinFernbus cities & stations.
- db-hafas - JavaScript client for the DB Hafas API.
- db-stations - A list of DB stations.
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.