mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
15 lines
281 B
JavaScript
15 lines
281 B
JavaScript
// 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;
|
|
};
|
|
|
|
export {
|
|
parseNearby,
|
|
};
|