Skip to content

Commit

Permalink
feat(report): add accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
bencevans committed Jun 16, 2019
1 parent f96baa5 commit 19d64bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class Tracksix extends EventEmitter {
lat: Math.round(tpv.lat * 100000) / 100000,
lon: Math.round(tpv.lon * 100000) / 100000,
tid: this.config.tid || this.config.deviceId.slice(-2),
tst: Math.round((new Date(tpv.time)).getTime() / 1000)
tst: Math.round((new Date(tpv.time)).getTime() / 1000),
acc: Math.max(tpv.epx, tpv.epy)
}

this.reportLocation(report)
Expand Down

0 comments on commit 19d64bf

Please sign in to comment.