Socket
Socket
Sign inDemoInstall

@turf/destination

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/destination - npm Package Compare versions

Comparing version 3.0.15 to 3.0.16

14

package.json
{
"name": "@turf/destination",
"version": "3.0.15",
"version": "3.0.16",
"description": "turf destination module",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "https://github.com/Turfjs/turf-destination.git"
"url": "git://github.com/Turfjs/turf.git"
},

@@ -25,14 +25,14 @@ "keywords": [

"bugs": {
"url": "https://github.com/Turfjs/turf-destination/issues"
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf-destination",
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"benchmark": "^1.0.0",
"tape": "^3.5.0",
"@turf/distance": "^3.0.15"
"@turf/distance": "^3.0.16"
},
"dependencies": {
"@turf/helpers": "^3.0.15",
"@turf/invariant": "^3.0.15"
"@turf/helpers": "^3.0.16",
"@turf/invariant": "^3.0.16"
}
}

@@ -1,10 +0,10 @@

# turf-destination
# @turf/destination
# destination
Takes a [Point](Point) and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. This uses the [Haversine formula](http://en.wikipedia.org/wiki/Haversine_formula) to account for global curvature.
Takes a [Point](http://geojson.org/geojson-spec.html#point) and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. This uses the [Haversine formula](http://en.wikipedia.org/wiki/Haversine_formula) to account for global curvature.
**Parameters**
- `from` **Feature<Point>** starting point
- `from` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** starting point
- `distance` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** distance from the starting point

@@ -42,3 +42,3 @@ - `bearing` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** ranging from -180 to 180

Returns **Feature<Point>** destination point
Returns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** destination point

@@ -57,3 +57,3 @@ ---

```sh
$ npm install turf-destination
$ npm install @turf/destination
```

@@ -64,3 +64,3 @@

```sh
$ npm install turf
$ npm install @turf/turf
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc