@turf/bearing
Advanced tools
Comparing version 4.5.2 to 4.6.0
19
index.js
@@ -15,18 +15,4 @@ var getCoord = require('@turf/invariant').getCoord; | ||
* @example | ||
* var point1 = { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [-75.343, 39.984] | ||
* } | ||
* }; | ||
* var point2 = { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [-75.534, 39.123] | ||
* } | ||
* }; | ||
* var point1 = turf.point([-75.343, 39.984]); | ||
* var point2 = turf.point([-75.534, 39.123]); | ||
* | ||
@@ -41,3 +27,2 @@ * var bearing = turf.bearing(point1, point2); | ||
*/ | ||
function bearing(start, end, final) { | ||
@@ -44,0 +29,0 @@ if (final === true) return calculateFinalBearing(start, end); |
{ | ||
"name": "@turf/bearing", | ||
"version": "4.5.2", | ||
"version": "4.6.0", | ||
"description": "turf bearing module", | ||
@@ -30,4 +30,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@turf/destination": "^4.5.2", | ||
"@turf/helpers": "^4.5.2", | ||
"@turf/destination": "^4.6.0", | ||
"@turf/helpers": "^4.6.0", | ||
"benchmark": "^2.1.4", | ||
@@ -38,4 +38,4 @@ "tape": "^4.6.3", | ||
"dependencies": { | ||
"@turf/invariant": "^4.5.2" | ||
"@turf/invariant": "^4.6.0" | ||
} | ||
} |
@@ -17,18 +17,4 @@ # @turf/bearing | ||
```javascript | ||
var point1 = { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [-75.343, 39.984] | ||
} | ||
}; | ||
var point2 = { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [-75.534, 39.123] | ||
} | ||
}; | ||
var point1 = turf.point([-75.343, 39.984]); | ||
var point2 = turf.point([-75.534, 39.123]); | ||
@@ -35,0 +21,0 @@ var bearing = turf.bearing(point1, point2); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6579
62
55
Updated@turf/invariant@^4.6.0