Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf-destination

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-destination

turf destination module

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-4.94%
Maintainers
1
Weekly downloads
 
Created
Source

turf-destination

Calculates the destination point given one point feature, distance in degrees, radians, miles, or kilometers, and bearing in degrees. This uses the haversine formula to account for global curvature.

###Install

npm install turf-destination

###Parameters

namedescription
point1point feature
distancepoint feature
bearingnumber (-180 - 180)
units'miles' or 'kilometers'

###Usage

destination(point1, distance, bearing, units)

###Example

var destination = require('turf-destination')
var point = require('turf-point')

var point1 = point(-75.343, 39.984)
var distance = 100
var bearing = 90
var units = 'miles' // or 'kilometers', 'degrees', 'radians'

var destination = destination(point1, distance, bearing, units)

console.log(destination)

Keywords

FAQs

Package last updated on 05 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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