diff --git a/p/db/modes.js b/p/db/modes.js index cdd63eae..6996b768 100644 --- a/p/db/modes.js +++ b/p/db/modes.js @@ -1,5 +1,6 @@ 'use strict' +// todo: https://gist.github.com/anonymous/d3323a5d2d6e159ed42b12afd0380434#file-haf_products-properties-L1-L95 const m = { nationalExp: { bitmask: 1, diff --git a/package.json b/package.json index 3437284b..83856381 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "vbb-parse-line": "^0.2.5", "vbb-parse-ticket": "^0.2.1", "vbb-short-station-name": "^0.4.0", - "vbb-stations": "^5.8.0", + "vbb-stations": "^5.9.0", "vbb-translate-ids": "^3.1.0" }, "devDependencies": { @@ -49,7 +49,7 @@ "tape": "^4.8.0", "tape-promise": "^2.0.1", "validate-fptf": "^1.0.2", - "vbb-stations-autocomplete": "^2.9.0" + "vbb-stations-autocomplete": "^2.11.0" }, "scripts": { "test": "node test/index.js", diff --git a/parse/departure.js b/parse/departure.js index 1db0f914..a4fce0dd 100644 --- a/parse/departure.js +++ b/parse/departure.js @@ -30,7 +30,7 @@ const createParseDeparture = (profile, stations, lines, remarks) => { // todo: follow public-transport/friendly-public-transport-format#27 here // see also derhuerst/vbb-rest#19 - if (pt.arr.aCncl || pt.dep.dCncl) { + if (d.stbStop.aCncl || d.stbStop.dCncl) { res.cancelled = true res.when = res.delay = null }