mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
BVG: use 1.21 protocol
This commit is contained in:
parent
793457a7a8
commit
272bf64e5e
2 changed files with 6 additions and 3 deletions
1
index.js
1
index.js
|
@ -206,6 +206,7 @@ const createClient = (profile, userAgent, request = _request) => {
|
||||||
getPT: true, // todo: what is this?
|
getPT: true, // todo: what is this?
|
||||||
getIV: false, // todo: walk & bike as alternatives?
|
getIV: false, // todo: walk & bike as alternatives?
|
||||||
getPolyline: !!opt.polylines
|
getPolyline: !!opt.polylines
|
||||||
|
// todo: `getConGroups: false` what is this?
|
||||||
}
|
}
|
||||||
if (profile.journeysNumF) query.numF = opt.results
|
if (profile.journeysNumF) query.numF = opt.results
|
||||||
if (profile.journeysOutFrwd) query.outFrwd = outFrwd
|
if (profile.journeysOutFrwd) query.outFrwd = outFrwd
|
||||||
|
|
|
@ -13,10 +13,10 @@ const _formatStation = require('../../format/station')
|
||||||
const products = require('./products')
|
const products = require('./products')
|
||||||
|
|
||||||
const transformReqBody = (body) => {
|
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.ext = 'BVG.1'
|
||||||
body.ver = '1.15' // todo: 1.16 with `mic` and `mac` query params
|
body.ver = '1.21'
|
||||||
body.auth = {type: 'AID', aid: '1Rxs112shyHLatUX4fofnmdxK'}
|
body.auth = {type: 'AID', aid: 'Mz0YdF9Fgx0Mb9'}
|
||||||
|
|
||||||
return body
|
return body
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,8 @@ const bvgProfile = {
|
||||||
|
|
||||||
formatStation,
|
formatStation,
|
||||||
|
|
||||||
|
departuresGetPasslist: false, // `departures()` method: support for `getPasslist` field?
|
||||||
|
departuresStbFltrEquiv: false, // `departures()` method: support for `stbFltrEquiv` field?
|
||||||
trip: true,
|
trip: true,
|
||||||
radar: true,
|
radar: true,
|
||||||
refreshJourney: true,
|
refreshJourney: true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue