BVG: use 1.21 protocol

This commit is contained in:
Jannis R 2018-10-28 16:36:49 +01:00
parent 793457a7a8
commit 272bf64e5e
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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,