fleetmap-reports 1.0.682 → 1.0.683

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.682",
3
+ "version": "1.0.683",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -41,8 +41,8 @@ exports.checkGeofenceIn = function checkGeofenceIn (p, g) {
41
41
  case 'Polygon':
42
42
  return booleanPointInPolygon.default(p, g)
43
43
  case 'Point':
44
- return distance.default(p, g, { units: 'meters' }) >= g.properties.distance
44
+ return distance.default(p, g, { units: 'meters' }) <= g.properties.distance
45
45
  case 'LineString':
46
- return pointToLineDistance.default(p, g, { units: 'meters' }) > (g.properties.geofence.attributes.polylineDistance || 25)
46
+ return pointToLineDistance.default(p, g, { units: 'meters' }) < (g.properties.geofence.attributes.polylineDistance || 25)
47
47
  }
48
48
  }