@idm-plugin/geo 1.6.0 → 1.6.1

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/dist/index.js CHANGED
@@ -2248,15 +2248,18 @@ class t0 {
2248
2248
  const A = M[O];
2249
2249
  if (A.sog = A.sog || 0, A.sog < z) {
2250
2250
  const b = A;
2251
- let W;
2251
+ let W = M.at(-1);
2252
2252
  for (let q = O + 1; q < M.length; q++) {
2253
2253
  const o = M[q];
2254
- if (o.sog = o.sog || 0, !(o.sog <= z)) {
2255
- W = M[q - 1];
2254
+ if (o.sog = o.sog || 0, o.sog <= z) {
2255
+ O = q;
2256
+ continue;
2257
+ } else {
2258
+ O = q - 1, W = M[q - 1];
2256
2259
  break;
2257
2260
  }
2258
2261
  }
2259
- if (W) {
2262
+ if (W.positionTime != b.positionTime) {
2260
2263
  const q = {
2261
2264
  start: {
2262
2265
  lat: b.lat,