mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
pass line name, Gitter badge, 0.6.2
This commit is contained in:
parent
efe2111f4e
commit
92515200d0
4 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
Copyright (c) 2016, Jannis R
|
Copyright (c) 2017, Jannis R
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "hafas-client",
|
"name": "hafas-client",
|
||||||
"description": "JavaScript client for HAFAS mobile APIs.",
|
"description": "JavaScript client for HAFAS mobile APIs.",
|
||||||
"version": "0.6.1",
|
"version": "0.6.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": ["index.js", "parse.js", "stringify.js"],
|
"files": ["index.js", "parse.js", "stringify.js"],
|
||||||
"author": "Jannis R <mail@jannisr.de>",
|
"author": "Jannis R <mail@jannisr.de>",
|
||||||
|
|
2
parse.js
2
parse.js
|
@ -38,7 +38,7 @@ const location = (l) => {
|
||||||
// todo: what is p.oprX?
|
// todo: what is p.oprX?
|
||||||
const product = (p) => {
|
const product = (p) => {
|
||||||
if (!p) return null
|
if (!p) return null
|
||||||
const result = {line: p.line, class: p.cls}
|
const result = {line: p.line, name: p.name, class: p.cls}
|
||||||
if (p.prodCtx) {
|
if (p.prodCtx) {
|
||||||
result.productCode = +p.prodCtx.catCode
|
result.productCode = +p.prodCtx.catCode
|
||||||
result.productName = p.prodCtx.catOutS
|
result.productName = p.prodCtx.catOutS
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
[](https://david-dm.org/derhuerst/hafas-client)
|
[](https://david-dm.org/derhuerst/hafas-client)
|
||||||
[](https://david-dm.org/derhuerst/hafas-client#info=devDependencies)
|
[](https://david-dm.org/derhuerst/hafas-client#info=devDependencies)
|
||||||

|

|
||||||
|
[](https://gitter.im/derhuerst)
|
||||||
|
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
|
|
Loading…
Add table
Reference in a new issue