Package Exports
- @spatial/rhumb-destination
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@spatial/rhumb-destination) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@spatial/rhumb-destination
rhumbDestination
Returns the destination Point having travelled the given distance along a Rhumb line from the origin Point with the (varant) given bearing.
Parameters
originCoord starting pointdistancenumber distance from the starting pointbearingnumber varant bearing angle ranging from -180 to 180 degrees from northoptionsObject Optional parameters (optional, default{})
Examples
var pt = turf.point([-75.343, 39.984], {"marker-color": "F00"});
var distance = 50;
var bearing = 90;
var options = {units: 'miles'};
var destination = turf.rhumbDestination(pt, distance, bearing, options);
//addToMap
var addToMap = [pt, destination]
destination.properties['marker-color'] = '#00F';Returns Feature<Point> Destination point.
This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.
Installation
Install this module individually:
$ npm install @spatial/rhumb-destinationOr install the Turf module that includes it as a function:
$ npm install @turf/turf