@squawk/flightplan 0.3.0 → 0.3.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.
@@ -3,7 +3,7 @@
3
3
  * plan routes. Extracts the ordered geographic point sequence from a
4
4
  * {@link ParsedRoute} and sums great-circle leg distances.
5
5
  */
6
- import { distance } from '@squawk/units';
6
+ import { greatCircle } from '@squawk/geo';
7
7
  // ---------------------------------------------------------------------------
8
8
  // Internal helpers
9
9
  // ---------------------------------------------------------------------------
@@ -127,7 +127,7 @@ export function computeRouteDistance(route, groundSpeedKt) {
127
127
  const to = points[i + 1];
128
128
  const legDistanceNm = from.precomputedDistanceToNextNm !== undefined
129
129
  ? from.precomputedDistanceToNextNm
130
- : distance.greatCircleDistanceNm(from.lat, from.lon, to.lat, to.lon);
130
+ : greatCircle.distanceNm(from.lat, from.lon, to.lat, to.lon);
131
131
  totalDistanceNm += legDistanceNm;
132
132
  legs.push({
133
133
  from: from.label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squawk/flightplan",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Flight plan route string parsing and resolution using composed navigation resolvers",
6
6
  "author": "Neil Cochran",
@@ -33,8 +33,8 @@
33
33
  "lint": "tsc --noEmit && eslint src"
34
34
  },
35
35
  "dependencies": {
36
- "@squawk/types": "*",
37
- "@squawk/units": "*"
36
+ "@squawk/geo": "*",
37
+ "@squawk/types": "*"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@squawk/airport-data": "*",