https://github.com/derhuerst/vbb-parse-ticket
Parse ticket information from the VBB HAFAS API.
https://github.com/derhuerst/vbb-parse-ticket
berlin bvg transit transport vbb
Last synced: 4 months ago
JSON representation
Parse ticket information from the VBB HAFAS API.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-parse-ticket
- Owner: derhuerst
- License: isc
- Created: 2016-05-24T19:27:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T15:53:48.000Z (about 6 years ago)
- Last Synced: 2025-02-08T20:45:49.197Z (over 1 year ago)
- Topics: berlin, bvg, transit, transport, vbb
- Language: JavaScript
- Homepage: https://github.com/derhuerst/vbb-parse-ticket
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# vbb-parse-ticket
**Parse ticket information from the VBB HAFAS API.**
```js
{
name: 'foo'
, price: 321
, shpCtx: '{"TLS": "B3TK"}'
}
```
will be parsed to
```js
{
name: 'foo'
, price: 3.21
, amount: 1
, fullDay: true
, group: true
, tariff: 'Berlin'
, coverage: 'ABC'
, variant: '1 day, group'
}
```
[](https://www.npmjs.com/package/vbb-parse-ticket)
[](https://travis-ci.org/derhuerst/vbb-parse-ticket)
[](https://david-dm.org/derhuerst/vbb-parse-ticket)
[](https://david-dm.org/derhuerst/vbb-parse-ticket#info=devDependencies)

[](https://gitter.im/derhuerst/vbb-rest)
## Installing
```shell
npm install vbb-parse-ticket
```
## Contributing
If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/vbb-parse-ticket/issues).