mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
17 lines
293 B
JavaScript
17 lines
293 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const parseLocation = require('./location')
|
||
|
|
||
|
// todo: remarks
|
||
|
// todo: lines
|
||
|
// todo: what is s.pCls?
|
||
|
// todo: what is s.wt?
|
||
|
// todo: what is s.dur?
|
||
|
const parseNearby = (n) => {
|
||
|
const result = location(n)
|
||
|
result.distance = n.dist
|
||
|
return result
|
||
|
}
|
||
|
|
||
|
module.exports = parseNearby
|