mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
20 lines
1 KiB
Markdown
20 lines
1 KiB
Markdown
|
# DB Busradar NRW profile for `hafas-client`
|
||
|
|
||
|
[*DB Busradar NRW*](https://www.bahn.de/westfalenbus/view/fahrplan/busradar.shtml) is a mobile application used in [North Rhine-Westphalia](https://en.wikipedia.org/wiki/North_Rhine-Westphalia).
|
||
|
It shows realtime locations and arrival/departure information for vehicles operated by bus companies which are part of [DB Regio Bus](https://www.dbregio.de/db_regio/view/wir/bus.shtml) in NRW, namely:
|
||
|
- [BVR Busverkehr Rheinland GmbH](https://www.rheinlandbus.de/) (DB Rheinlandbus)
|
||
|
- [WB Westfalen Bus GmbH](https://www.westfalenbus.de/) (DB Westfalenbus)
|
||
|
- [BVO Busverkehr Ostwestfalen GmbH](https://www.ostwestfalen-lippe-bus.de) (DB Ostwestfalen-Lippe-Bus)
|
||
|
|
||
|
This profile adapts `hafas-client` to the HAFAS endpoint used by the application.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
const createClient = require('hafas-client')
|
||
|
const dbbusradarnrwProfile = require('hafas-client/p/db-busradar-nrw')
|
||
|
|
||
|
// create a client with DB Busradar NRW profile
|
||
|
const client = createClient(dbbusradarnrwProfile, 'my-awesome-program')
|
||
|
```
|