fleetmap-reports 1.0.270 → 1.0.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/speeding-report.js +1 -0
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -241,6 +241,7 @@ async function getHereEvents(devices, routes, threshold){
|
|
|
241
241
|
const positions = routes.filter(p => p.deviceId === d.id)
|
|
242
242
|
try {
|
|
243
243
|
const results = await here.routeMatch(positions)
|
|
244
|
+
console.log('results', results)
|
|
244
245
|
const hereAlerts = results.filter(r => r.currentSpeedKmh > (r.speedLimit + threshold)).map(r => {
|
|
245
246
|
const position = positions.find(p => new Date(p.fixTime).getTime() === r.timestamp)
|
|
246
247
|
return {
|