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