fleetmap-reports 2.0.148 → 2.0.150

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.148",
3
+ "version": "2.0.150",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -320,7 +320,7 @@ async function getRoadSpeedLimits (devices, routes, threshold, minimumMinutes =
320
320
  BR: getOSMSpeedingEvents
321
321
  }
322
322
  const method = config[country] || getHereEvents
323
- return method(devices, routes, threshold, minimumMinutes, country && country.code)
323
+ return method(devices, routes, threshold, minimumMinutes, country)
324
324
  }
325
325
 
326
326
  exports.getRoadSpeedLimits = getRoadSpeedLimits
@@ -330,7 +330,7 @@ let countError = 0
330
330
  let lastSuccessDuration
331
331
  async function invokeValhalla (route, i, chunk, country, threshold, results, retry = 3) {
332
332
  const slice = route.slice(i, i + chunk)
333
- const url = 'http://valhalla.pinme.io:8002/trace_attributes'
333
+ const url = `http://valhalla-${country}.pinme.io:8002/trace_attributes`
334
334
  try {
335
335
  const now = new Date()
336
336
  const {