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

21 lines
858 B
Markdown
Raw Permalink Normal View History

2020-03-18 03:08:13 +01:00
# SNCB profile for `hafas-client`
*Note:* **This profile is currently broken** because [SNCB has switched the HAFAS API style](https://github.com/public-transport/hafas-client/issues/284) and we haven't migrated to the new API.
2020-03-18 03:08:13 +01:00
[*Société nationale des chemins de fer belges (SNCB)*/*Nationale Maatschappij der Belgische Spoorwegen (NMBS)*](https://en.wikipedia.org/wiki/National_Railway_Company_of_Belgium) is the major public transport provider of [Belgium](https://en.wikipedia.org/wiki/Belgium). This profile adds *SNCB*-specific customizations to `hafas-client`.
## Usage
```js
2022-05-07 16:17:37 +02:00
import {createClient} from 'hafas-client'
import {profile as sncbProfile} from 'hafas-client/p/sncb/index.js'
2020-03-18 03:08:13 +01:00
// create a client with SNCB profile
const client = createClient(sncbProfile, 'my-awesome-program')
```
## Customisations
- parses *SNCB*-specific products