db-vendo-client/p/nahsh/readme.md

21 lines
843 B
Markdown
Raw Normal View History

2018-03-14 14:54:08 +01:00
# NAH.SH profile for `hafas-client`
[*Nahverkehrsverbund Schleswig-Holstein (NAH.SH)*](https://de.wikipedia.org/wiki/Nahverkehrsverbund_Schleswig-Holstein) is the transportation authority for regional transport in [Schleswig-Holstein](https://en.wikipedia.org/wiki/Schleswig-Holstein). This profile adds *NAH.SH*-specific customizations to `hafas-client`. Consider using [`nahsh-hafas`](https://github.com/juliuste/nahsh-hafas), to always get the customized client right away.
## Usage
```js
2022-05-07 16:17:37 +02:00
import {createClient} from 'hafas-client'
import {profile as nahshProfile} from 'hafas-client/p/nahsh/index.js'
2018-03-14 14:54:08 +01:00
const userAgent = 'link-to-your-project-or-email' // adapt this to your project!
2018-03-14 14:54:08 +01:00
// create a client with NAH.SH profile
const client = createClient(nahshProfile, userAgent)
2018-03-14 14:54:08 +01:00
```
## Customisations
- parses *NAH.SH*-specific products