db-vendo-client/parse/nearby.js

17 lines
366 B
JavaScript
Raw Normal View History

2017-11-11 22:35:41 +01:00
'use strict'
// todo: remarks
// todo: lines
// todo: what is s.pCls?
// todo: what is s.wt?
// todo: what is s.dur?
2018-01-26 16:25:13 +01:00
// todo: [breaking] change to createParseNearby(profile, lines) => (n) => nearby
const parseNearby = (profile, n, lines) => {
const res = profile.parseLocation(profile, n, lines)
res.distance = n.dist
return res
2017-11-11 22:35:41 +01:00
}
module.exports = parseNearby