From 272bf64e5eb8b6341eb1bb9c941a3ac3fbbcc002 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 28 Oct 2018 16:36:49 +0100 Subject: [PATCH] BVG: use 1.21 protocol --- index.js | 1 + p/bvg/index.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e67319be..e5699cf0 100644 --- a/index.js +++ b/index.js @@ -206,6 +206,7 @@ const createClient = (profile, userAgent, request = _request) => { getPT: true, // todo: what is this? getIV: false, // todo: walk & bike as alternatives? getPolyline: !!opt.polylines + // todo: `getConGroups: false` what is this? } if (profile.journeysNumF) query.numF = opt.results if (profile.journeysOutFrwd) query.outFrwd = outFrwd diff --git a/p/bvg/index.js b/p/bvg/index.js index 3db424c3..445194b5 100644 --- a/p/bvg/index.js +++ b/p/bvg/index.js @@ -13,10 +13,10 @@ const _formatStation = require('../../format/station') const products = require('./products') const transformReqBody = (body) => { - body.client = {type: 'IPA', id: 'BVG', name: 'FahrInfo', v: '4070700'} + body.client = {type: 'IPA', id: 'BVG', name: 'FahrInfo', v: '6020000'} body.ext = 'BVG.1' - body.ver = '1.15' // todo: 1.16 with `mic` and `mac` query params - body.auth = {type: 'AID', aid: '1Rxs112shyHLatUX4fofnmdxK'} + body.ver = '1.21' + body.auth = {type: 'AID', aid: 'Mz0YdF9Fgx0Mb9'} return body } @@ -105,6 +105,8 @@ const bvgProfile = { formatStation, + departuresGetPasslist: false, // `departures()` method: support for `getPasslist` field? + departuresStbFltrEquiv: false, // `departures()` method: support for `stbFltrEquiv` field? trip: true, radar: true, refreshJourney: true,