mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
docs for BVG profile 📝
This commit is contained in:
parent
05bd54f021
commit
0466e570ad
3 changed files with 8 additions and 7 deletions
|
@ -6,6 +6,7 @@ This version is not fully backwords-compatible. Check out [the migration guide](
|
||||||
|
|
||||||
### new features ✨
|
### new features ✨
|
||||||
|
|
||||||
|
- 2d3796a BVG profile
|
||||||
- 0db84ce #61 parse remarks for stopovers and journey legs
|
- 0db84ce #61 parse remarks for stopovers and journey legs
|
||||||
- ac9819b `arrivals()` method – [docs](arrivals.md)
|
- ac9819b `arrivals()` method – [docs](arrivals.md)
|
||||||
- 5b754aa `refreshJourney()` method – [docs](refresh-journey.md)
|
- 5b754aa `refreshJourney()` method – [docs](refresh-journey.md)
|
||||||
|
|
|
@ -1,22 +1,21 @@
|
||||||
# VBB profile for `hafas-client`
|
# BVG 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`. Consider using [`vbb-hafas`](https://github.com/derhuerst/vbb-hafas#vbb-hafas), to always get the customized client right away.
|
[*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`.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const createClient = require('hafas-client')
|
const createClient = require('hafas-client')
|
||||||
const vbbProfile = require('hafas-client/p/vbb')
|
const bvgProfile = require('hafas-client/p/bvg')
|
||||||
|
|
||||||
// create a client with VBB profile
|
// create a client with BVG profile
|
||||||
const client = createClient(vbbProfile)
|
const client = createClient(bvgProfile, 'my-awesome-program')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Customisations
|
## Customisations
|
||||||
|
|
||||||
- parses *VBB*-specific products (such as *X-Bus*)
|
- parses *BVG*-specific products (such as *X-Bus*)
|
||||||
- strips parts from station names that are unnecessary in the Berlin context
|
- 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 line names to give more information (e.g. "Is it an express bus?")
|
||||||
- parses *VBB*-specific tickets
|
|
||||||
- renames *Ringbahn* line names to contain `⟳` and `⟲`
|
- renames *Ringbahn* line names to contain `⟳` and `⟲`
|
||||||
|
|
|
@ -6,6 +6,7 @@ HAFAS endpoint | wrapper library | docs | example code | source code
|
||||||
---------------|------------------|------|---------|------------
|
---------------|------------------|------|---------|------------
|
||||||
[Deutsche Bahn (DB)](https://en.wikipedia.org/wiki/Deutsche_Bahn) | [`db-hafas`](https://github.com/derhuerst/db-hafas) | [docs](p/db/readme.md) | [example code](p/db/example.js) | [src](p/db/index.js)
|
[Deutsche Bahn (DB)](https://en.wikipedia.org/wiki/Deutsche_Bahn) | [`db-hafas`](https://github.com/derhuerst/db-hafas) | [docs](p/db/readme.md) | [example code](p/db/example.js) | [src](p/db/index.js)
|
||||||
[Berlin & Brandenburg public transport (VBB)](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) | [`vbb-hafas`](https://github.com/derhuerst/vbb-hafas) | [docs](p/vbb/readme.md) | [example code](p/vbb/example.js) | [src](p/vbb/index.js)
|
[Berlin & Brandenburg public transport (VBB)](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) | [`vbb-hafas`](https://github.com/derhuerst/vbb-hafas) | [docs](p/vbb/readme.md) | [example code](p/vbb/example.js) | [src](p/vbb/index.js)
|
||||||
|
[Berlin public transport (BVG)](https://en.wikipedia.org/wiki/Berliner_Verkehrsbetriebe) | – | [docs](p/bvg/readme.md) | [example code](p/bvg/example.js) | [src](p/bvg/index.js)
|
||||||
[Österreichische Bundesbahnen (ÖBB)](https://en.wikipedia.org/wiki/Austrian_Federal_Railways) | [`oebb-hafas`](https://github.com/juliuste/oebb-hafas) | [docs](p/oebb/readme.md) | [example code](p/oebb/example.js) | [src](p/oebb/index.js)
|
[Österreichische Bundesbahnen (ÖBB)](https://en.wikipedia.org/wiki/Austrian_Federal_Railways) | [`oebb-hafas`](https://github.com/juliuste/oebb-hafas) | [docs](p/oebb/readme.md) | [example code](p/oebb/example.js) | [src](p/oebb/index.js)
|
||||||
[Nahverkehr Sachsen-Anhalt (NASA)](https://de.wikipedia.org/wiki/Nahverkehrsservice_Sachsen-Anhalt)/[INSA](https://insa.de) | [`insa-hafas`](https://github.com/derhuerst/insa-hafas) | [docs](p/insa/readme.md) | [example code](p/insa/example.js) | [src](p/insa/index.js)
|
[Nahverkehr Sachsen-Anhalt (NASA)](https://de.wikipedia.org/wiki/Nahverkehrsservice_Sachsen-Anhalt)/[INSA](https://insa.de) | [`insa-hafas`](https://github.com/derhuerst/insa-hafas) | [docs](p/insa/readme.md) | [example code](p/insa/example.js) | [src](p/insa/index.js)
|
||||||
[Nahverkehrsverbund Schleswig-Holstein (NAH.SH)](https://de.wikipedia.org/wiki/Nahverkehrsverbund_Schleswig-Holstein) | [`nahsh-hafas`](https://github.com/juliuste/nahsh-hafas) | [docs](p/nahsh/readme.md) | [example code](p/nahsh/example.js) | [src](p/nahsh/index.js)
|
[Nahverkehrsverbund Schleswig-Holstein (NAH.SH)](https://de.wikipedia.org/wiki/Nahverkehrsverbund_Schleswig-Holstein) | [`nahsh-hafas`](https://github.com/juliuste/nahsh-hafas) | [docs](p/nahsh/readme.md) | [example code](p/nahsh/example.js) | [src](p/nahsh/index.js)
|
||||||
|
|
Loading…
Add table
Reference in a new issue