{"name":"turf-destination","version":"3.0.1","description":"turf destination module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/Turfjs/turf-destination.git"},"keywords":["turf","distance","destination","bearing","miles","km"],"author":{"name":"jvrousseau"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-destination/issues"},"homepage":"https://github.com/Turfjs/turf-destination","devDependencies":{"benchmark":"^1.0.0","tape":"^3.5.0","turf-distance":"^3.0.1"},"dependencies":{"turf-helpers":"^3.0.1","turf-invariant":"^3.0.1"},"_id":"turf-destination@3.0.1","_shasum":"0e83bdfef87783a03946187366681760fdb9b13b","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"0e83bdfef87783a03946187366681760fdb9b13b","tarball":"http://registry-npm.ywwl.com/turf-destination/download/turf-destination-3.0.1.tgz","integrity":"sha512-SqVr0VZsXeZ6V+6tTWoq1X8onokAF9Es/Xcc2+jxUvD3wyMZCwrJ+30GXj0L0fKbhfJjcyBWUmwteUPnqodMlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGMsyPc2NB4sv2PRYDNkHAOyeAN/nmLyQhVNX61yjaWAiAecO1LN5GVA1F802qqPXZN38ahALTVHHWDb7R6zJyPyg=="}],"size":2777,"noattachment":false,"key":"/turf-destination/-/turf-destination-3.0.1.tgz"},"maintainers":[{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/turf-destination-3.0.1.tgz_1463431493663_0.4544605575501919"},"deprecated":"Turf packages are now namespaced: please use @turf/destination instead","directories":{},"readme":"# turf-destination\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-destination.png)](http://travis-ci.org/Turfjs/turf-destination)\n\nturf destination module\n\n\n### `turf.destination(start, distance, bearing, units)`\n\nTakes a Point feature 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.\n\n\n### Parameters\n\n| parameter  | type   | description                            |\n| ---------- | ------ | -------------------------------------- |\n| `start`    | Point  | a Point feature at the starting point  |\n| `distance` | Number | distance from the starting point       |\n| `bearing`  | Number | ranging from -180 to 180               |\n| `units`    | String | miles, kilometers, degrees, or radians |\n\n\n### Example\n\n```js\nvar point1 = turf.point([-75.343, 39.984]);\nvar distance = 50;\nvar bearing = 90;\nvar units = 'miles';\n\nvar destination = turf.destination(point1, distance, bearing, units);\npoint1.properties['marker-color'] = '#0f0';\ndestination.properties['marker-color'] = '#f00';\n\nvar result = turf.featurecollection([point1, destination]);\n\n//=result\n```\n\n\n**Returns** `Point`, a Point feature at the destination\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-destination\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n","publish_time":1463431495983,"_cnpm_publish_time":1463431495983,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}