{"name":"turf-destination","version":"1.0.0","description":"turf destination module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"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.0.3","turf-distance":"^0.1.5"},"dependencies":{"turf-point":"^1.2.0"},"gitHead":"2ad246818fbf5c59e33d36704f64f8d725ce7d36","_id":"turf-destination@1.0.0","_shasum":"140290ce417d7c8a9609ed0a46f6e57e752b78aa","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"dist":{"shasum":"140290ce417d7c8a9609ed0a46f6e57e752b78aa","tarball":"http://registry-npm.ywwl.com/turf-destination/download/turf-destination-1.0.0.tgz","integrity":"sha512-Vh9l9whvlVTESWOevP+ir4YqIvkArCP7HCwMvLbzzS/+rg4UjDcJ0g6y9QMnwwqAITAn8cNcbVwLS5SWvWOZlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHsf9KaJD1JdyxY2GU8xV+BOtQeSxN4fqsicWYoS0BlyAiEAyi92VIGRMS/xjl3TxJJrzvP7J0tc1A+cAM9k7m+7GJs="}],"size":2724,"noattachment":false,"key":"/turf-destination/-/turf-destination-1.0.0.tgz"},"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":1418329823503,"_cnpm_publish_time":1418329823503,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}