mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
docs for VBB profile
This commit is contained in:
parent
e573ee2842
commit
2ae8fd2ba0
2 changed files with 24 additions and 2 deletions
22
p/vbb/readme.md
Normal file
22
p/vbb/readme.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
# VBB profile for `hafas-client`
|
||||
|
||||
[*Verkehrsverbund Berlin-Brandenburg (VBB)*](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) is a group of public transport companies, running the public transport network in [Berlin](https://en.wikipedia.org/wiki/Berlin). This profile adds *VBB*-specific customizations to `hafas-client`.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const createClient = require('hafas-client')
|
||||
const vbbProfile = require('hafas-client/p/vbb')
|
||||
|
||||
// create a client with VBB profile
|
||||
const client = createClient(vbbProfile)
|
||||
```
|
||||
|
||||
|
||||
## Customisations
|
||||
|
||||
- parses *VBB*-specific products (such as *X-Bus*)
|
||||
- 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?")
|
||||
- parses *VBB*-specific tickets
|
||||
- renames *Ringbahn* line names to contain `⟳` and `⟲`
|
|
@ -1,9 +1,9 @@
|
|||
# hafas-client
|
||||
|
||||
**A client for HAFAS public transport APIs**. Sort of like [public-transport-enabler](https://github.com/schildbach/public-transport-enabler), but with a smaller scope. It also contains customisations for the following transport networks:
|
||||
**A client for HAFAS public transport APIs**. Sort of like [public-transport-enabler](https://github.com/schildbach/public-transport-enabler), but with a smaller scope. It also [contains customisations](p) for the following transport networks:
|
||||
|
||||
- [Deutsche Bahn](https://en.wikipedia.org/wiki/Deutsche_Bahn) – [src at `p/db`](p/db/index.js)
|
||||
- [Berlin public transport](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) – [src at `p/vbb`](p/vbb/index.js)
|
||||
- [Berlin public transport](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) - [docs](p/vbb/readme.md) – [src](p/vbb/index.js)
|
||||
|
||||
[](https://www.npmjs.com/package/hafas-client)
|
||||
[](https://travis-ci.org/derhuerst/hafas-client)
|
||||
|
|
Loading…
Add table
Reference in a new issue