fleetmap-reports 1.0.285 → 1.0.289
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/.idea/jsLibraryMappings.xml +1 -1
- package/.idea/modules.xml +1 -1
- package/.idea/vcs.xml +1 -1
- package/{.idea/fleetmap-reports.iml → fleetmap-reports.iml} +1 -2
- package/lang/enGB.js +1 -1
- package/package.json +1 -1
- package/src/speeding-report.js +2 -4
- package/.idea/aws.xml +0 -17
- package/.idea/codeStyles/Project.xml +0 -7
package/.idea/modules.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ProjectModuleManager">
|
|
4
4
|
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/fleetmap-reports.iml" filepath="$PROJECT_DIR$/fleetmap-reports.iml" />
|
|
6
6
|
</modules>
|
|
7
7
|
</component>
|
|
8
8
|
</project>
|
package/.idea/vcs.xml
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
3
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
4
|
<exclude-output />
|
|
5
5
|
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
6
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
7
|
</component>
|
|
9
8
|
</module>
|
package/lang/enGB.js
CHANGED
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -237,12 +237,10 @@ async function getCustomSpeedLimitEvents(devices, routes){
|
|
|
237
237
|
async function getHereEvents(devices, routes, threshold){
|
|
238
238
|
console.log('here speed limit events')
|
|
239
239
|
const events = []
|
|
240
|
-
await Promise.all(devices.map(d =>
|
|
241
|
-
here.routeMatch(routes.filter(p => p.deviceId === d.id)).then(r => d.results = r)
|
|
242
|
-
))
|
|
243
240
|
for (const d of devices) {
|
|
241
|
+
const positions = routes.filter(p => p.deviceId === d.id)
|
|
244
242
|
try {
|
|
245
|
-
const results =
|
|
243
|
+
const results = await here.routeMatch(positions)
|
|
246
244
|
const hereAlerts = results.filter(r => r.currentSpeedKmh > (parseInt(r.speedLimit) + threshold)).map(r => {
|
|
247
245
|
const position = positions.find(p => new Date(p.fixTime).getTime() === r.timestamp)
|
|
248
246
|
return {
|
package/.idea/aws.xml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="accountSettings">
|
|
4
|
-
<option name="activeProfile" value="profile:default" />
|
|
5
|
-
<option name="activeRegion" value="us-east-1" />
|
|
6
|
-
<option name="recentlyUsedProfiles">
|
|
7
|
-
<list>
|
|
8
|
-
<option value="profile:default" />
|
|
9
|
-
</list>
|
|
10
|
-
</option>
|
|
11
|
-
<option name="recentlyUsedRegions">
|
|
12
|
-
<list>
|
|
13
|
-
<option value="us-east-1" />
|
|
14
|
-
</list>
|
|
15
|
-
</option>
|
|
16
|
-
</component>
|
|
17
|
-
</project>
|