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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.147",
3
+ "version": "2.0.149",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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
- Brazil: getOSMSpeedingEvents
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 = 'http://valhalla.pinme.io:8002/trace_attributes'
333
+ const url = `http://valhalla-${country}.pinme.io:8002/trace_attributes`
331
334
  try {
332
335
  const now = new Date()
333
336
  const {