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

22 lines
799 B
Markdown
Raw Normal View History

2018-07-28 13:54:44 +02:00
# BVG profile for `hafas-client`
2018-07-28 13:43:15 +02:00
2018-07-28 13:54:44 +02:00
[*Verkehrsverbund Berlin-Brandenburg (BVG)*](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) is the major local transport provider in [Berlin](https://en.wikipedia.org/wiki/Berlin). This profile adds *BVG*-specific customizations to `hafas-client`.
2018-07-28 13:43:15 +02:00
## Usage
```js
const createClient = require('hafas-client')
2018-07-28 13:54:44 +02:00
const bvgProfile = require('hafas-client/p/bvg')
2018-07-28 13:43:15 +02:00
2018-07-28 13:54:44 +02:00
// create a client with BVG profile
const client = createClient(bvgProfile, 'my-awesome-program')
2018-07-28 13:43:15 +02:00
```
## Customisations
2018-07-28 13:54:44 +02:00
- parses *BVG*-specific products (such as *X-Bus*)
2018-07-28 13:43:15 +02:00
- strips parts from station names that are unnecessary in the Berlin context
- parses line names to give more information (e.g. "Is it an express bus?")
- renames *Ringbahn* line names to contain `⟳` and `⟲`