{"name":"turf-destination","version":"1.2.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.4.0","turf-distance":"^1.0.0"},"dependencies":{"turf-point":"^2.0.0"},"gitHead":"165869a051398281e463ba44a000693d77ccaa3b","_id":"turf-destination@1.2.0","_shasum":"afda16c24179f7a526d24553ea687290a841a727","_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"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"afda16c24179f7a526d24553ea687290a841a727","tarball":"http://registry-npm.ywwl.com/turf-destination/download/turf-destination-1.2.0.tgz","integrity":"sha512-hOQbt32vMPnDEeMOLpj1LGn7Mb9GKhMvsLRVUEx14c8nyTQ/RpmDfvd6lbmvNi+Gx+zk+ozpXw7Bu8aswp3nAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGoGxdHPMYie9pW3f7qN2lO+wWyY/3/M3f3X0QozazNyAiEAxnOHctMDXf+00/wFC1CbpMbQ7ld4tea6JrxD64yA8PY="}],"size":2976,"noattachment":false,"key":"/turf-destination/-/turf-destination-1.2.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":1421875409795,"_cnpm_publish_time":1421875409795,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}