mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
parse more hints
This commit is contained in:
parent
871db25bc9
commit
1299d7f04f
1 changed files with 11 additions and 1 deletions
|
@ -70,6 +70,16 @@ const hints = Object.assign(Object.create(null), {
|
||||||
type: 'hint',
|
type: 'hint',
|
||||||
code: 'air-conditioned',
|
code: 'air-conditioned',
|
||||||
text: 'air-conditioned vehicle'
|
text: 'air-conditioned vehicle'
|
||||||
|
},
|
||||||
|
r0: {
|
||||||
|
type: 'hint',
|
||||||
|
code: 'upward-escalator',
|
||||||
|
text: 'upward escalator'
|
||||||
|
},
|
||||||
|
au: {
|
||||||
|
type: 'hint',
|
||||||
|
code: 'elevator',
|
||||||
|
text: 'elevator available'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -121,7 +131,7 @@ const parseHint = (profile, h) => {
|
||||||
if (h.type === 'U') {
|
if (h.type === 'U') {
|
||||||
return {
|
return {
|
||||||
type: 'status',
|
type: 'status',
|
||||||
code: null, // todo
|
code: h.code || null,
|
||||||
text
|
text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue