fleetmap-reports 1.0.987 → 1.0.988
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 +3 -2
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -363,13 +363,14 @@ async function invokeValhalla (route, i, chunk, country, threshold, results, ret
|
|
|
363
363
|
console.log(e.message, 'retry:', retry)
|
|
364
364
|
return invokeValhalla(route, i, chunk, country, threshold, results, retry)
|
|
365
365
|
} else {
|
|
366
|
-
console.error(e.message, e.response && e.response.data, 'deviceId',
|
|
366
|
+
console.error(e.message, e.response && e.response.data, 'deviceId',
|
|
367
|
+
slice[0] && slice[0].deviceId, slice[0] && slice[0].address, slice[0] && slice[0].fixTime, country, chunk)
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
}
|
|
370
371
|
|
|
371
372
|
async function getOSMSpeedingEvents (devices, routes, threshold, minimumMinutes = 0, country) {
|
|
372
|
-
const chunk =
|
|
373
|
+
const chunk = 300
|
|
373
374
|
const events = []
|
|
374
375
|
for (const d of devices) {
|
|
375
376
|
const route = routes.filter(r => r.deviceId === d.id)
|