{"name":"turf-destination","version":"0.0.2","description":"turf destination module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/jvrousseau/turf-destination.git"},"keywords":["turf","distance","destination","bearing","miles","km"],"author":{"name":"jvrousseau"},"license":"MIT","bugs":{"url":"https://github.com/jvrousseau/turf-destination/issues"},"homepage":"https://github.com/jvrousseau/turf-destination","devDependencies":{"tape":"^2.13.3","turf-distance":"^0.1.4"},"dependencies":{"turf-point":"^0.1.1"},"gitHead":"1843ef8548b80f9fd7da2065f4bcb5dbf5a0f730","_id":"turf-destination@0.0.2","_shasum":"d47663972bf770b70101c76fc8a3d28715206a6e","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},"maintainers":[{"name":"jvrousseau","email":"jv.rousseau@outlook.com"}],"dist":{"shasum":"d47663972bf770b70101c76fc8a3d28715206a6e","tarball":"http://registry-npm.ywwl.com/turf-destination/download/turf-destination-0.0.2.tgz","integrity":"sha512-JTqvNf51KMQxXDan5dMXBw8+cz5jP2CHTj11PodUxjl/4T40cA2hq5rRDX2gT9/Ae6SRFOTLtC1ofSSQ3t5/Pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnXpbYUIsbRK4L5UTe04f3za+2OwcoVXsBHJnbTZmxIgIger/DgTPQpDoAxMZ0HK5WQue5uLXIz9onc9KBdSRr3cY="}],"size":2790,"noattachment":false,"key":"/turf-destination/-/turf-destination-0.0.2.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":1406929606077,"_cnpm_publish_time":1406929606077,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}