{"_id":"haversine","_rev":"21-d6294492cdb344ef9400a3da3d6fece6","name":"haversine","description":"A simple haversine module","dist-tags":{"latest":"1.1.1"},"versions":{"0.0.1":{"name":"haversine","version":"0.0.1","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"./test/test.js"},"repository":{"type":"git","url":"https://github.com/niix/haversine"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","_id":"haversine@0.0.1","dist":{"shasum":"bbce31ff0d9c035a4850b70fdc51f7491b0a1b31","tarball":"https://registry.npmjs.org/haversine/-/haversine-0.0.1.tgz","integrity":"sha512-TSGIkThJZbEr03niYmO9gItXiYPvqnO3hW7iZgMQheUHNdoloJ0YbG4LjgkzsmW8Qy5LExQBdnneHyQ0oSM+6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqYxF09fApS9ADHvU2lA3V2R0zqZbqU03lQT9seaIjKAiAmh3Kwo4gK1azajE3mhZcISPcAkbiuNAnhDCwcPKwSig=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}]},"0.0.2":{"name":"haversine","version":"0.0.2","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"./test/test.js"},"repository":{"type":"git","url":"https://github.com/niix/haversine"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","_id":"haversine@0.0.2","dist":{"shasum":"0b4331194629b1c205474cc23d9ceae192c6b424","tarball":"https://registry.npmjs.org/haversine/-/haversine-0.0.2.tgz","integrity":"sha512-s3H6qBmPrYV83nud8dFUJvx6x37rQFt8d6HeME5TM0Za0KOLVHeLQGeNPtqRzNsonZgEzdzmiqORjFrLso7a6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqYKQ3pgWebhiEF1qpWFEHAvVnNMIi0bQbzjSeoiGwrAIhAKC9oiuh+WyyuqnLtNXI/SPKmUJ/wvj8cm3o224kFLRv"}]},"_from":"haversine","_npmVersion":"1.2.2","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}]},"0.0.3":{"name":"haversine","version":"0.0.3","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"./test/test.js"},"repository":{"type":"git","url":"https://github.com/niix/haversine"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","_id":"haversine@0.0.3","dist":{"shasum":"e0fc69257f959bab1cf55d711ce46394e5c2ea71","tarball":"https://registry.npmjs.org/haversine/-/haversine-0.0.3.tgz","integrity":"sha512-h4iUS/cqk5dBR8qn1XQssrAN4jSdFVeyUEYGtKEf6JyGCT2ITUqqbV89HSyj27PVG29aPGIZsLonKk2BEgPtvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOEP5fT+AyAP1AxpagK3OllTxi4RDzyrhdLTjezT0I3AIgXQTFCAMJ7HxFtcsbwLrxG4vR/8lKuM2AbHxgPWGi7Fg="}]},"_from":"haversine","_npmVersion":"1.2.2","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}]},"0.0.4":{"name":"haversine","version":"0.0.4","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"./test/test.js"},"repository":{"type":"git","url":"https://github.com/niix/haversine"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","_id":"haversine@0.0.4","dist":{"shasum":"909d55912fe4ff9e21c092ad8bcb8377074d0247","tarball":"https://registry.npmjs.org/haversine/-/haversine-0.0.4.tgz","integrity":"sha512-wqNj9cDNd0QNI1uXpARdCKQeTpzpXf90/tNuEfxg39LZ7aVPbFeoogt3M5OebwGEaNzL3D4eOm4Kc8LDGGFESg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/wKEzq16NhGb3R0PxADGyoEyqpfPdMLyaR8bPasb9oAiEA2AmSD075xlc9RsiWMYraYgiEbUba3OSV/1W8wRd9S0s="}]},"_from":"haversine","_npmVersion":"1.2.2","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}]},"1.0.0":{"name":"haversine","version":"1.0.0","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js --ui tdd"},"repository":{"type":"git","url":"https://github.com/niix/haversine"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/niix/haversine/issues"},"homepage":"https://github.com/niix/haversine","_id":"haversine@1.0.0","dist":{"shasum":"c9c2bc5ee67216e588c5b20e249e7f47d4ec8fa5","tarball":"https://registry.npmjs.org/haversine/-/haversine-1.0.0.tgz","integrity":"sha512-WCSh3vmTeqgEI5ZvE0a810Bztj0NG55gezJ6kMcwKMfyPuYMrBaNqbbS+VStCPaQ2tXZ1p2PYbexmJAbG6GlbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmD1ILwk9dIyXDJz2eAW7zlxsKKq5Zt5NR9ogYUfyJoAiEAy9eolaAkOiKTlY5wvIZhA3xrVrOKZIANvNE4pyuRq38="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}]},"1.0.1":{"name":"haversine","version":"1.0.1","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js --ui tdd"},"repository":{"type":"git","url":"git+https://github.com/niix/haversine.git"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","devDependencies":{"mocha":"*"},"gitHead":"842623d6b83a7e15de0e0e102ae5c8f66f285dc6","bugs":{"url":"https://github.com/niix/haversine/issues"},"homepage":"https://github.com/niix/haversine#readme","_id":"haversine@1.0.1","_shasum":"13243d5e9ffc83931bb175183660730f7b7c1dee","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"dist":{"shasum":"13243d5e9ffc83931bb175183660730f7b7c1dee","tarball":"https://registry.npmjs.org/haversine/-/haversine-1.0.1.tgz","integrity":"sha512-iKZATCACkSN01CUtGJIUz/Hil+cwjYVGn5JwSSIJJcmMitBdtgI++/upcHTBQjqyKC9SotWMxTq7rque6ulOug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXLIfrzrhjS29B7g9aUA/3IIMaUJNuRrdUDmi9PbvlAQIhAICAMNiKHTZnZ8EV2M+0sII8uNTQXWuID5DE+NSqzT8h"}]},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/haversine-1.0.1.tgz_1473172055957_0.5195071627385914"}},"1.0.2":{"name":"haversine","version":"1.0.2","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js --ui tdd"},"repository":{"type":"git","url":"git+https://github.com/niix/haversine.git"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","devDependencies":{"mocha":"*"},"gitHead":"8055e233c8885eb7ef010d4ede8e19617d397972","bugs":{"url":"https://github.com/niix/haversine/issues"},"homepage":"https://github.com/niix/haversine#readme","_id":"haversine@1.0.2","_shasum":"7872a584383230e1565875477da02f18c518c3e5","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"dist":{"shasum":"7872a584383230e1565875477da02f18c518c3e5","tarball":"https://registry.npmjs.org/haversine/-/haversine-1.0.2.tgz","integrity":"sha512-dpspBUmp5PNo89LJiUa+r8W8MCK4eSO4Nivq+MtEQq2zjJlCwjD0Ls6CY/Utse0VMQrbHW/5tXyP8g/e2PkKlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2ibxLW+jHuA1JEbxmPpNKGze1hrKnqyK29bI2CEJMBQIhALI3lSCJQyGtzMlqj5UBcYFsRJ3aoZwH3qIDAj7nGEAu"}]},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/haversine-1.0.2.tgz_1483323916478_0.3420093939639628"}},"1.1.0":{"name":"haversine","version":"1.1.0","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js --ui tdd"},"repository":{"type":"git","url":"git+https://github.com/niix/haversine.git"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","devDependencies":{"mocha":"*"},"gitHead":"1b78b654bfc2dde0d5d06dafaaaf5213c787e2e6","bugs":{"url":"https://github.com/niix/haversine/issues"},"homepage":"https://github.com/niix/haversine#readme","_id":"haversine@1.1.0","_shasum":"0b2380cb6d9c10e9f1224fc2b513cc61018d5ff7","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"dist":{"shasum":"0b2380cb6d9c10e9f1224fc2b513cc61018d5ff7","tarball":"https://registry.npmjs.org/haversine/-/haversine-1.1.0.tgz","integrity":"sha512-kC8gfWqWcXnDyHsj21xhpw5ALvrqFxkknuRVXNnPrg3PA/9wMAqOrt1HqHstWxGpdDh0zGUDxtrP/j1peNARXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSdz7z06bpkpHacnOv0PeQEcJP3Bp2jxyqlpcFu6/ZnAiEA6qx7hjeeyMShS5J9jlTfMBylwbQTw0U+XJMBf7uTmCE="}]},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/haversine-1.1.0.tgz_1510232004977_0.02265599276870489"}},"1.1.1":{"name":"haversine","version":"1.1.1","description":"A simple haversine module","main":"haversine.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js --ui tdd"},"repository":{"type":"git","url":"git+https://github.com/niix/haversine.git"},"keywords":["haversine","distance","coordinates","geolocation"],"author":{"name":"Nick Justice","url":"niix"},"license":"MIT","devDependencies":{"mocha":"*"},"gitHead":"1f290da4699d0093b125c95ad682a8df32369480","bugs":{"url":"https://github.com/niix/haversine/issues"},"homepage":"https://github.com/niix/haversine#readme","_id":"haversine@1.1.1","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"niix","email":"njustice@gmail.com"},"dist":{"integrity":"sha512-KW4MS8+krLIeiw8bF5z532CptG0ZyGGFj0UbKMxx25lKnnJ1hMUbuzQl+PXQjNiDLnl1bOyz23U6hSK10r4guw==","shasum":"05b65e0445aca8f217b0db56877e4d637d3fc8ae","tarball":"https://registry.npmjs.org/haversine/-/haversine-1.1.1.tgz","fileCount":7,"unpackedSize":8129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcM1QWCRA9TVsSAnZWagAAd7MP/3BVxjRpKzEZ1/1eDdzM\nBSh7YBZjwkggVyey2Qj/DaZtZDVzoYSnPk9j+X2dm7mum3ipvvoopt/W47XZ\nKpp6Ml91z/WIokQ+6TlLyC5xX6Qmh96aEVlsth54PFNUR0C4pQzeEp8Mea24\n2XB6jgqFEB0lgap0Rx3nVn5fzxCo9NaJboDrL/cyDdRuMm+hgjuKySax1NBC\n8A6U385lk1hpLBhS9rNC5zALhenU++yD2CYXuwteoLImQsSlbkHJn+P/BSCF\nsY8RzV480vFKT58F5VTOdciHS9OdRCOhSXgNHAXksx0TS1jmJF2QYiWowTC8\nkOBiaCCaF2VSNFb0Jja906AoqOEmjc21RpnCpxwmGeKFsZCQnQuIw62mrh7q\nkNW9VQZKjDcxWjFkCg5iA7IiMYwoGZBioKuBkLclB8cGRL9AurPjwvCK6AtF\nyX+d+BknVIfuuegcKrCjPDmJcs1VIwY9jDdyZhm/bGEUS521syBc2650lKCK\nGzXLG8gEx0nICb1X/Vkfj5RsBjjsXVreObuja4Rv0MvZLwihwTxIwbQFKuBe\nc8ZImJ9d362LoK6Q6U8ND5oIa3VMiseSaZtLR0KtXyOdBHOKx8i2W2EHNDbH\n1uD1enkR9hfzOYmpcsmS5r7ezsCPp1Br3L8Yb507l9N3M3Ye4mFc6pcToUrE\na3jb\r\n=Ma+3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDov9My2wRHyoTe622DOoIdHF1N2NMrIkfT4rypFshALgIhAL+CUtB+j1DfWh55U6o27/DIUbu3ZCERzXEEQVB7YUaO"}]},"maintainers":[{"name":"niix","email":"njustice@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/haversine_1.1.1_1546867734343_0.6313443524007858"},"_hasShrinkwrap":false}},"readme":"# Haversine\nA simple haversine formula module for Node.js\n\n## Installation\n`$ npm install haversine`\n\n## Usage\n### haversine (start, end, options)\n\n    const haversine = require('haversine')\n\n    const start = {\n      latitude: 30.849635,\n      longitude: -83.24559\n    }\n\n    const end = {\n      latitude: 27.950575,\n      longitude: -82.457178\n    }\n\n    console.log(haversine(start, end))\n    console.log(haversine(start, end, {unit: 'mile'}))\n    console.log(haversine(start, end, {unit: 'meter'}))\n    console.log(haversine(start, end, {threshold: 1}))\n    console.log(haversine(start, end, {threshold: 1, unit: 'mile'}))\n    console.log(haversine(start, end, {threshold: 1, unit: 'meter'}))\n\n\n#### api\n- `options.unit` - Unit of measurement applied to result (default `km`, available `km, mile, meter, nmi`)\n- `options.threshold` - If passed, will result in library returning `boolean` value of whether or not the start and end points are within that supplied threshold.  (default `null`)\n- `options.format` - The format of start and end coordinate arguments. See table below for available values. (default `null`)\n\n| Format        | Example\n| ------------- |--------------------------|\n| `undefined` (default) | `{ latitude: 30.849635, longitude: -83.24559] }`\n| `[lat,lon]`   | `[30.849635, -83.24559]`\n| `[lon,lat]`   | `[-83.24559, 30.849635]`\n| `{lat,lon}`   | `{ lat: 30.849635, lon: -83.24559] }`\n| `geojson`     | `{ type: 'Feature', geometry: { coordinates: [-83.24559, 30.849635] } }`\n\n\n[MIT License](http://opensource.org/licenses/MIT)\n","maintainers":[{"name":"niix","email":"njustice@gmail.com"}],"time":{"modified":"2022-06-18T19:35:43.386Z","created":"2013-01-18T19:19:14.755Z","0.0.1":"2013-01-18T19:19:15.406Z","0.0.2":"2013-01-25T18:39:07.301Z","0.0.3":"2013-01-28T19:38:22.188Z","0.0.4":"2013-02-01T16:31:15.535Z","1.0.0":"2014-07-15T03:34:39.843Z","1.0.1":"2016-09-06T14:27:36.831Z","1.0.2":"2017-01-02T02:25:17.025Z","1.1.0":"2017-11-09T12:53:25.855Z","1.1.1":"2019-01-07T13:28:54.456Z"},"author":{"name":"Nick Justice","url":"niix"},"repository":{"type":"git","url":"git+https://github.com/niix/haversine.git"},"homepage":"https://github.com/niix/haversine#readme","keywords":["haversine","distance","coordinates","geolocation"],"bugs":{"url":"https://github.com/niix/haversine/issues"},"license":"MIT","readmeFilename":"README.md","users":{"smallsharptools":true,"floby":true,"bigslycat":true}}