fleetmap-reports 1.0.403 → 1.0.404

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.403",
3
+ "version": "1.0.404",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -175,7 +175,7 @@ function getInAndOutEvents(devices, route, userData) {
175
175
  }
176
176
  }
177
177
  if(g.geometry.type === 'Point') {
178
- if (distance(p, g, {units: 'meters'}) < g.properties.distance) {
178
+ if (distance.default(p, g, {units: 'meters'}) < g.properties.distance) {
179
179
  if (!entryMap.includes(g)) {
180
180
  events.push(createEvent('geofenceEnter',d.id,p,g))
181
181
  entryMap.push(g)