mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
DB: 1.16 protocol, enable journeyLeg, 2.8.0
Although `journeyLeg()` can be unreliable for DB (#49), I enabled it here. This is not a breaking change because, previously, you were not able to use `journeyLeg()` in the first place. Let's hope that it works for people. 🙈 By changing to the 1.16 protocol, we support the `polyline` option of `journeyLeg()` as well.
This commit is contained in:
parent
908d53189a
commit
16c3f01118
2 changed files with 5 additions and 3 deletions
|
@ -15,7 +15,7 @@ const formatBitmask = createFormatBitmask(modes)
|
|||
const transformReqBody = (body) => {
|
||||
body.client = {id: 'DB', v: '16040000', type: 'IPH', name: 'DB Navigator'}
|
||||
body.ext = 'DB.R15.12.a'
|
||||
body.ver = '1.15'
|
||||
body.ver = '1.16'
|
||||
body.auth = {type: 'AID', aid: 'n91dB8Z77MLdoR0K'}
|
||||
|
||||
return body
|
||||
|
@ -145,7 +145,9 @@ const dbProfile = {
|
|||
parseJourney: createParseJourney,
|
||||
|
||||
formatStation,
|
||||
formatProducts
|
||||
formatProducts,
|
||||
|
||||
journeyLeg: true // todo: #49
|
||||
}
|
||||
|
||||
module.exports = dbProfile
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "hafas-client",
|
||||
"description": "JavaScript client for HAFAS public transport APIs.",
|
||||
"version": "2.7.5",
|
||||
"version": "2.8.0",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
|
|
Loading…
Add table
Reference in a new issue