@turf/rhumb-destination 7.1.0 → 7.3.0
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/README.md +2 -2
- package/dist/cjs/index.cjs +3 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +3 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ origin Point with the (varant) given bearing.
|
|
|
14
14
|
* `bearing` **[number][3]** varant bearing angle ranging from -180 to 180 degrees from north
|
|
15
15
|
* `options` **[Object][4]** Optional parameters (optional, default `{}`)
|
|
16
16
|
|
|
17
|
-
* `options.units` **
|
|
17
|
+
* `options.units` **Units** Supports all valid Turf [Units][5] (optional, default `'kilometers'`)
|
|
18
18
|
* `options.properties` **[Object][4]** translate properties to destination point (optional, default `{}`)
|
|
19
19
|
|
|
20
20
|
### Examples
|
|
@@ -42,7 +42,7 @@ Returns **[Feature][6]<[Point][1]>** Destination point.
|
|
|
42
42
|
|
|
43
43
|
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
44
44
|
|
|
45
|
-
[5]: https://
|
|
45
|
+
[5]: https://turfjs.org/docs/api/types/Units
|
|
46
46
|
|
|
47
47
|
[6]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
48
48
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -13,8 +13,7 @@ function rhumbDestination(origin, distance, bearing, options = {}) {
|
|
|
13
13
|
options.units,
|
|
14
14
|
"meters"
|
|
15
15
|
);
|
|
16
|
-
if (wasNegativeDistance)
|
|
17
|
-
distanceInMeters = -Math.abs(distanceInMeters);
|
|
16
|
+
if (wasNegativeDistance) distanceInMeters = -Math.abs(distanceInMeters);
|
|
18
17
|
const coords = _invariant.getCoord.call(void 0, origin);
|
|
19
18
|
const destination = calculateRhumbDestination(
|
|
20
19
|
coords,
|
|
@@ -46,9 +45,9 @@ function calculateRhumbDestination(origin, distance, bearing, radius) {
|
|
|
46
45
|
phi2 * 180 / Math.PI
|
|
47
46
|
];
|
|
48
47
|
}
|
|
49
|
-
var
|
|
48
|
+
var index_default = rhumbDestination;
|
|
50
49
|
|
|
51
50
|
|
|
52
51
|
|
|
53
|
-
exports.default =
|
|
52
|
+
exports.default = index_default; exports.rhumbDestination = rhumbDestination;
|
|
54
53
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/turf/turf/packages/turf-rhumb-destination/dist/cjs/index.cjs","../../index.ts"],"names":[],"mappings":"AAAA;ACEA;AACE;AAEA;AACA;AACA;AAAA,wCAEK;AACP,4CAAyB;AA0BzB,SAAS,gBAAA,CACP,MAAA,EACA,QAAA,EACA,OAAA,EACA,QAAA,EAGI,CAAC,CAAA,EACc;AACnB,EAAA,MAAM,oBAAA,EAAsB,SAAA,EAAW,CAAA;AACvC,EAAA,IAAI,iBAAA,EAAmB,oCAAA;AAAA,IACrB,IAAA,CAAK,GAAA,CAAI,QAAQ,CAAA;AAAA,IACjB,OAAA,CAAQ,KAAA;AAAA,IACR;AAAA,EACF,CAAA;AACA,EAAA,GAAA,CAAI,mBAAA,EAAqB,iBAAA,EAAmB,CAAC,IAAA,CAAK,GAAA,CAAI,gBAAgB,CAAA;AACtE,EAAA,MAAM,OAAA,EAAS,iCAAA,MAAe,CAAA;AAC9B,EAAA,MAAM,YAAA,EAAc,yBAAA;AAAA,IAClB,MAAA;AAAA,IACA,gBAAA;AAAA,IACA;AAAA,EACF,CAAA;AAIA,EAAA,WAAA,CAAY,CAAC,EAAA,GACX,WAAA,CAAY,CAAC,EAAA,EAAI,MAAA,CAAO,CAAC,EAAA,EAAI,IAAA,EACzB,CAAA,IAA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,CAAK,GAAA,CAAI,QAAQ,EAAA,EAAI,MAAA,EAAS,SAAA,EAAW,SAAA,EAAW,IAAA,CAAK,GAAA,CAAI,IAAI,CAAA;AAE3E,EAAA,MAAM,YAAA,EAAe,MAAA,EAAQ,IAAA,CAAK,GAAA,CAAI,KAAK,EAAA,EAAK,CAAA;AAChD,EAAA,MAAM,QAAA,EAAU,QAAA,EAAU,WAAA;AAE1B,EAAA,OAAO;AAAA,IAAA,CACF,QAAA,EAAU,IAAA,EAAO,IAAA,CAAK,GAAA,EAAK,GAAA,EAAA,EAAO,IAAA,EAAO,GAAA;AAAA,IAC3C,KAAA,EAAO,IAAA,EAAO,IAAA,CAAK;AAAA,EACtB,CAAA;AACF;AAGA,IAAO,cAAA,EAAQ,gBAAA;AD9Ef;AACE;AACA;AACF,6EAAC","file":"/home/runner/work/turf/turf/packages/turf-rhumb-destination/dist/cjs/index.cjs","sourcesContent":[null,"// https://en.wikipedia.org/wiki/Rhumb_line\nimport { Feature, Point, GeoJsonProperties } from \"geojson\";\nimport {\n convertLength,\n Coord,\n degreesToRadians,\n earthRadius,\n point,\n Units,\n} from \"@turf/helpers\";\nimport { getCoord } from \"@turf/invariant\";\n\n/**\n * Returns the destination {@link Point} having travelled the given distance along a Rhumb line from the\n * origin Point with the (varant) given bearing.\n *\n * @function\n * @param {Coord} origin starting point\n * @param {number} distance distance from the starting point\n * @param {number} bearing varant bearing angle ranging from -180 to 180 degrees from north\n * @param {Object} [options={}] Optional parameters\n * @param {Units} [options.units='kilometers'] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units}\n * @param {Object} [options.properties={}] translate properties to destination point\n * @returns {Feature<Point>} Destination point.\n * @example\n * var pt = turf.point([-75.343, 39.984], {\"marker-color\": \"F00\"});\n * var distance = 50;\n * var bearing = 90;\n * var options = {units: 'miles'};\n *\n * var destination = turf.rhumbDestination(pt, distance, bearing, options);\n *\n * //addToMap\n * var addToMap = [pt, destination]\n * destination.properties['marker-color'] = '#00F';\n */\nfunction rhumbDestination<P extends GeoJsonProperties = GeoJsonProperties>(\n origin: Coord,\n distance: number,\n bearing: number,\n options: {\n units?: Units;\n properties?: P;\n } = {}\n): Feature<Point, P> {\n const wasNegativeDistance = distance < 0;\n let distanceInMeters = convertLength(\n Math.abs(distance),\n options.units,\n \"meters\"\n );\n if (wasNegativeDistance) distanceInMeters = -Math.abs(distanceInMeters);\n const coords = getCoord(origin);\n const destination = calculateRhumbDestination(\n coords,\n distanceInMeters,\n bearing\n );\n\n // compensate the crossing of the 180th meridian (https://macwright.org/2016/09/26/the-180th-meridian.html)\n // solution from https://github.com/mapbox/mapbox-gl-js/issues/3250#issuecomment-294887678\n destination[0] +=\n destination[0] - coords[0] > 180\n ? -360\n : coords[0] - destination[0] > 180\n ? 360\n : 0;\n return point(destination, options.properties);\n}\n\n/**\n * Returns the destination point having travelled along a rhumb line from origin point the given\n * distance on the given bearing.\n * Adapted from Geodesy: http://www.movable-type.co.uk/scripts/latlong.html#rhumblines\n *\n * @private\n * @param {Array<number>} origin - point\n * @param {number} distance - Distance travelled, in same units as earth radius (default: metres).\n * @param {number} bearing - Bearing in degrees from north.\n * @param {number} [radius=6371e3] - (Mean) radius of earth (defaults to radius in metres).\n * @returns {Array<number>} Destination point.\n */\nfunction calculateRhumbDestination(\n origin: number[],\n distance: number,\n bearing: number,\n radius?: number\n) {\n // φ => phi\n // λ => lambda\n // ψ => psi\n // Δ => Delta\n // δ => delta\n // θ => theta\n\n radius = radius === undefined ? earthRadius : Number(radius);\n\n const delta = distance / radius; // angular distance in radians\n const lambda1 = (origin[0] * Math.PI) / 180; // to radians, but without normalize to 𝜋\n const phi1 = degreesToRadians(origin[1]);\n const theta = degreesToRadians(bearing);\n\n const DeltaPhi = delta * Math.cos(theta);\n let phi2 = phi1 + DeltaPhi;\n\n // check for some daft bugger going past the pole, normalise latitude if so\n if (Math.abs(phi2) > Math.PI / 2) {\n phi2 = phi2 > 0 ? Math.PI - phi2 : -Math.PI - phi2;\n }\n\n const DeltaPsi = Math.log(\n Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi1 / 2 + Math.PI / 4)\n );\n // E-W course becomes ill-conditioned with 0/0\n const q = Math.abs(DeltaPsi) > 10e-12 ? DeltaPhi / DeltaPsi : Math.cos(phi1);\n\n const DeltaLambda = (delta * Math.sin(theta)) / q;\n const lambda2 = lambda1 + DeltaLambda;\n\n return [\n (((lambda2 * 180) / Math.PI + 540) % 360) - 180,\n (phi2 * 180) / Math.PI,\n ]; // normalise to −180..+180°\n}\n\nexport { rhumbDestination };\nexport default rhumbDestination;\n"]}
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -5,12 +5,12 @@ import { Coord, Units } from '@turf/helpers';
|
|
|
5
5
|
* Returns the destination {@link Point} having travelled the given distance along a Rhumb line from the
|
|
6
6
|
* origin Point with the (varant) given bearing.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @function
|
|
9
9
|
* @param {Coord} origin starting point
|
|
10
10
|
* @param {number} distance distance from the starting point
|
|
11
11
|
* @param {number} bearing varant bearing angle ranging from -180 to 180 degrees from north
|
|
12
12
|
* @param {Object} [options={}] Optional parameters
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {Units} [options.units='kilometers'] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units}
|
|
14
14
|
* @param {Object} [options.properties={}] translate properties to destination point
|
|
15
15
|
* @returns {Feature<Point>} Destination point.
|
|
16
16
|
* @example
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ import { Coord, Units } from '@turf/helpers';
|
|
|
5
5
|
* Returns the destination {@link Point} having travelled the given distance along a Rhumb line from the
|
|
6
6
|
* origin Point with the (varant) given bearing.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @function
|
|
9
9
|
* @param {Coord} origin starting point
|
|
10
10
|
* @param {number} distance distance from the starting point
|
|
11
11
|
* @param {number} bearing varant bearing angle ranging from -180 to 180 degrees from north
|
|
12
12
|
* @param {Object} [options={}] Optional parameters
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {Units} [options.units='kilometers'] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units}
|
|
14
14
|
* @param {Object} [options.properties={}] translate properties to destination point
|
|
15
15
|
* @returns {Feature<Point>} Destination point.
|
|
16
16
|
* @example
|
package/dist/esm/index.js
CHANGED
|
@@ -13,8 +13,7 @@ function rhumbDestination(origin, distance, bearing, options = {}) {
|
|
|
13
13
|
options.units,
|
|
14
14
|
"meters"
|
|
15
15
|
);
|
|
16
|
-
if (wasNegativeDistance)
|
|
17
|
-
distanceInMeters = -Math.abs(distanceInMeters);
|
|
16
|
+
if (wasNegativeDistance) distanceInMeters = -Math.abs(distanceInMeters);
|
|
18
17
|
const coords = getCoord(origin);
|
|
19
18
|
const destination = calculateRhumbDestination(
|
|
20
19
|
coords,
|
|
@@ -46,9 +45,9 @@ function calculateRhumbDestination(origin, distance, bearing, radius) {
|
|
|
46
45
|
phi2 * 180 / Math.PI
|
|
47
46
|
];
|
|
48
47
|
}
|
|
49
|
-
var
|
|
48
|
+
var index_default = rhumbDestination;
|
|
50
49
|
export {
|
|
51
|
-
|
|
50
|
+
index_default as default,
|
|
52
51
|
rhumbDestination
|
|
53
52
|
};
|
|
54
53
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts"],"sourcesContent":["// https://en.wikipedia.org/wiki/Rhumb_line\nimport { Feature, Point, GeoJsonProperties } from \"geojson\";\nimport {\n convertLength,\n Coord,\n degreesToRadians,\n earthRadius,\n point,\n Units,\n} from \"@turf/helpers\";\nimport { getCoord } from \"@turf/invariant\";\n\n/**\n * Returns the destination {@link Point} having travelled the given distance along a Rhumb line from the\n * origin Point with the (varant) given bearing.\n *\n * @
|
|
1
|
+
{"version":3,"sources":["../../index.ts"],"sourcesContent":["// https://en.wikipedia.org/wiki/Rhumb_line\nimport { Feature, Point, GeoJsonProperties } from \"geojson\";\nimport {\n convertLength,\n Coord,\n degreesToRadians,\n earthRadius,\n point,\n Units,\n} from \"@turf/helpers\";\nimport { getCoord } from \"@turf/invariant\";\n\n/**\n * Returns the destination {@link Point} having travelled the given distance along a Rhumb line from the\n * origin Point with the (varant) given bearing.\n *\n * @function\n * @param {Coord} origin starting point\n * @param {number} distance distance from the starting point\n * @param {number} bearing varant bearing angle ranging from -180 to 180 degrees from north\n * @param {Object} [options={}] Optional parameters\n * @param {Units} [options.units='kilometers'] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units}\n * @param {Object} [options.properties={}] translate properties to destination point\n * @returns {Feature<Point>} Destination point.\n * @example\n * var pt = turf.point([-75.343, 39.984], {\"marker-color\": \"F00\"});\n * var distance = 50;\n * var bearing = 90;\n * var options = {units: 'miles'};\n *\n * var destination = turf.rhumbDestination(pt, distance, bearing, options);\n *\n * //addToMap\n * var addToMap = [pt, destination]\n * destination.properties['marker-color'] = '#00F';\n */\nfunction rhumbDestination<P extends GeoJsonProperties = GeoJsonProperties>(\n origin: Coord,\n distance: number,\n bearing: number,\n options: {\n units?: Units;\n properties?: P;\n } = {}\n): Feature<Point, P> {\n const wasNegativeDistance = distance < 0;\n let distanceInMeters = convertLength(\n Math.abs(distance),\n options.units,\n \"meters\"\n );\n if (wasNegativeDistance) distanceInMeters = -Math.abs(distanceInMeters);\n const coords = getCoord(origin);\n const destination = calculateRhumbDestination(\n coords,\n distanceInMeters,\n bearing\n );\n\n // compensate the crossing of the 180th meridian (https://macwright.org/2016/09/26/the-180th-meridian.html)\n // solution from https://github.com/mapbox/mapbox-gl-js/issues/3250#issuecomment-294887678\n destination[0] +=\n destination[0] - coords[0] > 180\n ? -360\n : coords[0] - destination[0] > 180\n ? 360\n : 0;\n return point(destination, options.properties);\n}\n\n/**\n * Returns the destination point having travelled along a rhumb line from origin point the given\n * distance on the given bearing.\n * Adapted from Geodesy: http://www.movable-type.co.uk/scripts/latlong.html#rhumblines\n *\n * @private\n * @param {Array<number>} origin - point\n * @param {number} distance - Distance travelled, in same units as earth radius (default: metres).\n * @param {number} bearing - Bearing in degrees from north.\n * @param {number} [radius=6371e3] - (Mean) radius of earth (defaults to radius in metres).\n * @returns {Array<number>} Destination point.\n */\nfunction calculateRhumbDestination(\n origin: number[],\n distance: number,\n bearing: number,\n radius?: number\n) {\n // φ => phi\n // λ => lambda\n // ψ => psi\n // Δ => Delta\n // δ => delta\n // θ => theta\n\n radius = radius === undefined ? earthRadius : Number(radius);\n\n const delta = distance / radius; // angular distance in radians\n const lambda1 = (origin[0] * Math.PI) / 180; // to radians, but without normalize to 𝜋\n const phi1 = degreesToRadians(origin[1]);\n const theta = degreesToRadians(bearing);\n\n const DeltaPhi = delta * Math.cos(theta);\n let phi2 = phi1 + DeltaPhi;\n\n // check for some daft bugger going past the pole, normalise latitude if so\n if (Math.abs(phi2) > Math.PI / 2) {\n phi2 = phi2 > 0 ? Math.PI - phi2 : -Math.PI - phi2;\n }\n\n const DeltaPsi = Math.log(\n Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi1 / 2 + Math.PI / 4)\n );\n // E-W course becomes ill-conditioned with 0/0\n const q = Math.abs(DeltaPsi) > 10e-12 ? DeltaPhi / DeltaPsi : Math.cos(phi1);\n\n const DeltaLambda = (delta * Math.sin(theta)) / q;\n const lambda2 = lambda1 + DeltaLambda;\n\n return [\n (((lambda2 * 180) / Math.PI + 540) % 360) - 180,\n (phi2 * 180) / Math.PI,\n ]; // normalise to −180..+180°\n}\n\nexport { rhumbDestination };\nexport default rhumbDestination;\n"],"mappings":";AAEA;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,gBAAgB;AA0BzB,SAAS,iBACP,QACA,UACA,SACA,UAGI,CAAC,GACc;AACnB,QAAM,sBAAsB,WAAW;AACvC,MAAI,mBAAmB;AAAA,IACrB,KAAK,IAAI,QAAQ;AAAA,IACjB,QAAQ;AAA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
1
|
{
|
|
2
2
|
"name": "@turf/rhumb-destination",
|
|
3
|
-
"version": "7.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "7.3.0",
|
|
4
|
+
"description": "Calculates the destination point having travelled the given distance along a Rhumb line.",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Chris Veness <@chrisveness>",
|
|
@@ -61,23 +61,23 @@
|
|
|
61
61
|
"test:tape": "tsx test.ts"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@turf/truncate": "
|
|
64
|
+
"@turf/truncate": "7.3.0",
|
|
65
65
|
"@types/benchmark": "^2.1.5",
|
|
66
|
-
"@types/tape": "^
|
|
66
|
+
"@types/tape": "^5.8.1",
|
|
67
67
|
"benchmark": "^2.1.4",
|
|
68
68
|
"load-json-file": "^7.0.1",
|
|
69
69
|
"npm-run-all": "^4.1.5",
|
|
70
|
-
"tape": "^5.
|
|
71
|
-
"tsup": "^8.0
|
|
72
|
-
"tsx": "^4.
|
|
73
|
-
"typescript": "^5.
|
|
74
|
-
"write-json-file": "^
|
|
70
|
+
"tape": "^5.9.0",
|
|
71
|
+
"tsup": "^8.4.0",
|
|
72
|
+
"tsx": "^4.19.4",
|
|
73
|
+
"typescript": "^5.8.3",
|
|
74
|
+
"write-json-file": "^6.0.0"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@turf/helpers": "
|
|
78
|
-
"@turf/invariant": "
|
|
77
|
+
"@turf/helpers": "7.3.0",
|
|
78
|
+
"@turf/invariant": "7.3.0",
|
|
79
79
|
"@types/geojson": "^7946.0.10",
|
|
80
|
-
"tslib": "^2.
|
|
80
|
+
"tslib": "^2.8.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "9f58a103e8f9a587ab640307ed03ba5233913ddd"
|
|
83
83
|
}
|