mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09: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',
|
||||
code: 'air-conditioned',
|
||||
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') {
|
||||
return {
|
||||
type: 'status',
|
||||
code: null, // todo
|
||||
code: h.code || null,
|
||||
text
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue