2018-09-07 19:56:05 +02:00
# 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
2022-05-07 16:17:37 +02:00
import {createClient} from 'hafas-client'
2022-11-22 21:08:08 +01:00
import {profile as sMuenchenProfile} from 'hafas-client/p/sbahn-muenchen/index.js'
2018-09-07 19:56:05 +02:00
2023-03-14 20:32:50 +01:00
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
2018-09-07 19:56:05 +02:00
// create a client with S-Bahn München profile
2023-03-14 20:32:50 +01:00
const client = createClient(sMuenchenProfile, userAgent)
2018-09-07 19:56:05 +02:00
```