db-vendo-client/parse/nearby.js

17 lines
363 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, data) => (n) => nearby
const parseNearby = (profile, data, n) => {
const res = profile.parseLocation(profile, data, n)
res.distance = n.dist
return res
2017-11-11 22:35:41 +01:00
}
module.exports = parseNearby