@idm-plugin/geo 1.7.2 → 1.7.3
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 +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1564,7 +1564,7 @@ class N {
|
|
|
1564
1564
|
* @return [{lng, lat}]
|
|
1565
1565
|
*/
|
|
1566
1566
|
static calculateRangeWaypoints(M, z, p, O = []) {
|
|
1567
|
-
const A = this.convertRouteToCoordinates(p, 0), b = this.mergeCoordinatesToWaypoints([M, z
|
|
1567
|
+
const A = this.convertRouteToCoordinates(p, 0), b = this.mergeCoordinatesToWaypoints([M, z], A.length ? A : O), W = b.findIndex(
|
|
1568
1568
|
(d) => R.roundPrecision(M.lng, 8) === R.roundPrecision(d.lng, 8) && R.roundPrecision(M.lat, 8) === R.roundPrecision(d.lat, 8)
|
|
1569
1569
|
), o = b.findIndex(
|
|
1570
1570
|
(d) => R.roundPrecision(z.lng, 8) === R.roundPrecision(d.lng, 8) && R.roundPrecision(z.lat, 8) === R.roundPrecision(d.lat, 8)
|