fleetmap-reports 1.0.389 → 1.0.390

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": "1.0.389",
3
+ "version": "1.0.390",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -154,7 +154,7 @@ function getInAndOutEvents(devices, route, userData) {
154
154
  const deviceRoute = route.filter(p => p.deviceId === d.id)
155
155
 
156
156
  const routePoints = deviceRoute.map(p => convertPositionToFeature(p))
157
- const geofencesFeatures = userData.geofences.map(g => convertToFeature(g))
157
+ const geofencesFeatures = userData.geofences.filter(g => g.area.startsWith('POLYGON') || g.area.startsWith('CIRCLE')).map(g => convertToFeature(g))
158
158
 
159
159
  const entryMap = []
160
160
  routePoints.forEach(p => {