mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
- rename variables - more consistent indentation - give crucial anonymous functions a name - add more TODOs
16 lines
289 B
JavaScript
16 lines
289 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 res = parseLocation(n)
|
|
res.distance = n.dist
|
|
return res
|
|
}
|
|
|
|
module.exports = parseNearby
|