mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
14 lines
486 B
Markdown
14 lines
486 B
Markdown
|
# S-Bahn München profile for `hafas-client`
|
||
|
|
||
|
[*S-Bahn München*](https://en.wikipedia.org/wiki/Munich_S-Bahn) runs commuter trains in [Munich](https://en.wikipedia.org/wiki/Munich). This profile adapts `hafas-client` to their HAFAS endpoint.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
const createClient = require('hafas-client')
|
||
|
const sMunichProfile = require('hafas-client/p/sbahn-munich')
|
||
|
|
||
|
// create a client with S-Bahn München profile
|
||
|
const client = createClient(sMunichProfile, 'my-awesome-program')
|
||
|
```
|