fleetmap-reports 2.0.147 → 2.0.149
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 +5 -2
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -313,8 +313,11 @@ async function getRoadSpeedLimits (devices, routes, threshold, minimumMinutes =
|
|
|
313
313
|
console.log('getRoadSpeedLimits', position.address, country)
|
|
314
314
|
const config = {
|
|
315
315
|
Chile: getOSMSpeedingEvents,
|
|
316
|
+
CL: getOSMSpeedingEvents,
|
|
316
317
|
Morocco: getOSMSpeedingEvents,
|
|
317
|
-
|
|
318
|
+
MA: getOSMSpeedingEvents,
|
|
319
|
+
Brazil: getOSMSpeedingEvents,
|
|
320
|
+
BR: getOSMSpeedingEvents
|
|
318
321
|
}
|
|
319
322
|
const method = config[country] || getHereEvents
|
|
320
323
|
return method(devices, routes, threshold, minimumMinutes, country && country.code)
|
|
@@ -327,7 +330,7 @@ let countError = 0
|
|
|
327
330
|
let lastSuccessDuration
|
|
328
331
|
async function invokeValhalla (route, i, chunk, country, threshold, results, retry = 3) {
|
|
329
332
|
const slice = route.slice(i, i + chunk)
|
|
330
|
-
const url =
|
|
333
|
+
const url = `http://valhalla-${country}.pinme.io:8002/trace_attributes`
|
|
331
334
|
try {
|
|
332
335
|
const now = new Date()
|
|
333
336
|
const {
|