mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
ÖBB: fix radar() 🐛, fix radar() test 💚
This commit is contained in:
parent
ae2007c9e2
commit
e1f1d0d258
2 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,8 @@ const createParseMovement = (profile, opt, data) => {
|
|||
const res = _parseMovement(m)
|
||||
// filter out POIs
|
||||
// todo: make use of them, as some of them specify fare zones
|
||||
res.nextStops = res.nextStops.filter(s => {
|
||||
res.nextStops = res.nextStops.filter(st => {
|
||||
const s = st.stop || {}
|
||||
if (s.station) {
|
||||
s = s.station
|
||||
if (s.station.type === 'stop' || s.station.type === 'station') return true
|
||||
|
|
|
@ -373,8 +373,7 @@ test('radar Salzburg', co(function* (t) {
|
|||
south: 47.773278,
|
||||
east: 13.07562
|
||||
}, {
|
||||
duration: 5 * 60,
|
||||
// when
|
||||
duration: 5 * 60, when
|
||||
})
|
||||
|
||||
// todo: find a way to always get frames from the API
|
||||
|
|
Loading…
Add table
Reference in a new issue