mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
16 lines
366 B
JavaScript
16 lines
366 B
JavaScript
'use strict'
|
|
|
|
// todo: remarks
|
|
// todo: lines
|
|
// todo: what is s.pCls?
|
|
// todo: what is s.wt?
|
|
// todo: what is s.dur?
|
|
|
|
// 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
|
|
}
|
|
|
|
module.exports = parseNearby
|