fleetmap-reports 1.0.874 → 1.0.875
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 -1
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -305,7 +305,7 @@ function getCountry (position) {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
async function getRoadSpeedLimits (devices, routes, threshold, minimumMinutes = 0) {
|
|
308
|
-
const position = routes
|
|
308
|
+
const position = routes.find(p => getCountry(p))
|
|
309
309
|
const country = getCountry(position)
|
|
310
310
|
const config = {
|
|
311
311
|
CHL: getOSMSpeedingEvents,
|