{"_id":"geoheat","_rev":"26-4b184f55b4980f361dcb093fae03d17a","name":"geoheat","description":"In-memory geohash heatmap. Does not visualize, but constructs an in-memory index of latlongs that you can query to determine density of areas.","dist-tags":{"latest":"1.3.1"},"versions":{"1.0.0":{"name":"geoheat","version":"1.0.0","description":"In-memory geohash heatmap. Does not visualize, but constructs an in-memory index of latlongs that you can query to determine density of areas.","main":"lib/index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec","benchmark":"node benchmark/index.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+ssh://git@github.com/swift-nav/geoheat.git"},"keywords":["geoheat","heatmap","latlong","ecef"],"author":{"name":"Joshua Gross","email":"joshua.gross@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/swift-nav/geoheat/issues"},"devDependencies":{"babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.15.0","babel-preset-es2015":"^6.16.0","babel-preset-es2016":"^6.16.0","babel-preset-es2017":"^6.16.0","benchmark":"^2.1.1","istanbul":"^0.4.5","mocha":"^3.1.0"},"homepage":"https://github.com/swift-nav/geoheat#readme","dependencies":{"latlon-geohash":"^1.1.0","lodash.zipobject":"^4.1.3"},"gitHead":"89f2d7e2ef51a7aad04676703341a1fbece79799","_id":"geoheat@1.0.0","_shasum":"c94f93c87bcac70567c7a79dd9255fa71a02bef0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"joshuagross","email":"joshua.gross@gmail.com"},"dist":{"shasum":"c94f93c87bcac70567c7a79dd9255fa71a02bef0","tarball":"https://registry.npmjs.org/geoheat/-/geoheat-1.0.0.tgz","integrity":"sha512-eGL1D++W7LsCqxAHj3xHZ2Sk7W+IMvOswohfle5ZEgZ9CCRL8/b22vAyAkzedIlvguuxDoCIU44QvUUNq00XmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzoQm8apc0NUvpqgzhXUYLAr1NscNyvyL2RTJuVwkeKAiBtHkyKuLpUF9onC5D4104dnjiqCzk3cuF9fChc3eImdw=="}]},"maintainers":[{"name":"joshuagross","email":"joshua.gross@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/geoheat-1.0.0.tgz_1476691548194_0.46293390239588916"},"directories":{}},"1.1.0":{"name":"geoheat","version":"1.1.0","description":"In-memory geohash heatmap. Does not visualize, but constructs an in-memory index of latlongs that you can query to determine density of areas.","main":"lib/index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec","benchmark":"node benchmark/index.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+ssh://git@github.com/swift-nav/geoheat.git"},"keywords":["geoheat","heatmap","latlong","ecef"],"author":{"name":"Joshua Gross","email":"joshua.gross@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/swift-nav/geoheat/issues"},"devDependencies":{"babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.15.0","babel-preset-es2015":"^6.16.0","babel-preset-es2016":"^6.16.0","babel-preset-es2017":"^6.16.0","benchmark":"^2.1.1","istanbul":"^0.4.5","mocha":"^3.1.0"},"homepage":"https://github.com/swift-nav/geoheat#readme","dependencies":{"latlon-geohash":"^1.1.0","lodash.zipobject":"^4.1.3"},"gitHead":"a9e0ee599ea4eaa8baa32c38dc7bae7456e14eb7","_id":"geoheat@1.1.0","_shasum":"879f04308fedc3c6db219aee51309f367e7785b4","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"joshuagross","email":"joshua.gross@gmail.com"},"dist":{"shasum":"879f04308fedc3c6db219aee51309f367e7785b4","tarball":"https://registry.npmjs.org/geoheat/-/geoheat-1.1.0.tgz","integrity":"sha512-jZ6KsBDsFEuncnf07vrM+YHuNhhXgtnVX8Jb60CYs/Nr9F5fuRGAoAJfteucf/6QsQNreidUEcIluVba8jS27A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnu+tI8qT3SQzQIvPtpOumtqPk4WLGAH/H8oSTWNpT2AIgHsvCO0fxgLYsB/bcBoRI0LHq7VjXUo0Gn0Pf6/GhR4M="}]},"maintainers":[{"name":"joshuagross","email":"joshua.gross@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/geoheat-1.1.0.tgz_1476727139941_0.9841849622316658"},"directories":{}},"1.2.0":{"name":"geoheat","version":"1.2.0","description":"In-memory geohash heatmap. Does not visualize, but constructs an in-memory index of latlongs that you can query to determine density of areas.","main":"lib/index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec","benchmark":"node benchmark/index.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+ssh://git@github.com/swift-nav/geoheat.git"},"keywords":["geoheat","heatmap","latlong","ecef"],"author":{"name":"Joshua Gross","email":"joshua.gross@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/swift-nav/geoheat/issues"},"devDependencies":{"babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.15.0","babel-preset-es2015":"^6.16.0","babel-preset-es2016":"^6.16.0","babel-preset-es2017":"^6.16.0","benchmark":"^2.1.1","istanbul":"^0.4.5","mocha":"^3.1.0"},"homepage":"https://github.com/swift-nav/geoheat#readme","dependencies":{"latlon-geohash":"^1.1.0","lodash.zipobject":"^4.1.3"},"gitHead":"532668e1a8b11636b6d745bfe5d84f8fba205475","_id":"geoheat@1.2.0","_shasum":"b09a1698f881954a19f69053ee6525fc753f8481","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"joshuagross","email":"joshua.gross@gmail.com"},"dist":{"shasum":"b09a1698f881954a19f69053ee6525fc753f8481","tarball":"https://registry.npmjs.org/geoheat/-/geoheat-1.2.0.tgz","integrity":"sha512-OklDF6FUYtA8YDekGPMVTkpTPrmPmI8rm9N9eYnJJWsSs94ZRFtIdHfRnVTiKYHaSFYHg019dkj9yIDwbdMwNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDuy4k29dGwcLpQzTjB0gQL82RRG4pFyaa2arsWHY7FwIhAP02JC2Ordc+6wUGRS4IK7b9I2I2s2LCuDlOg1SfFuY3"}]},"maintainers":[{"name":"joshuagross","email":"joshua.gross@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/geoheat-1.2.0.tgz_1476730543635_0.19002187973819673"},"directories":{}},"1.3.0":{"name":"geoheat","version":"1.3.0","description":"In-memory geohash heatmap. Does not visualize, but constructs an in-memory index of latlongs that you can query to determine density of areas.","main":"lib/index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec","benchmark":"node benchmark/index.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+ssh://git@github.com/swift-nav/geoheat.git"},"keywords":["geoheat","heatmap","latlong","ecef"],"author":{"name":"Joshua Gross","email":"joshua.gross@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/swift-nav/geoheat/issues"},"devDependencies":{"babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.15.0","babel-preset-es2015":"^6.16.0","babel-preset-es2016":"^6.16.0","babel-preset-es2017":"^6.16.0","benchmark":"^2.1.1","istanbul":"^0.4.5","mocha":"^3.1.0"},"homepage":"https://github.com/swift-nav/geoheat#readme","dependencies":{"latlon-geohash":"^1.1.0","lodash.rangeright":"^4.2.0","lodash.zipobject":"^4.1.3"},"gitHead":"c1d0d5ee6e12875e537204c1aebd608e1e12aeeb","_id":"geoheat@1.3.0","_shasum":"89fc325e138e5ab9f940138055901323b6f1f3a8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"joshuagross","email":"joshua.gross@gmail.com"},"dist":{"shasum":"89fc325e138e5ab9f940138055901323b6f1f3a8","tarball":"https://registry.npmjs.org/geoheat/-/geoheat-1.3.0.tgz","integrity":"sha512-HdYCQ9aSpGIHCAaYU4qtkB5PnY5TtIsjO1/ZCy3W+yQ3y/duDmwNPBV6uv8kWO+G4b0UPzffW/Qn0EwFC3ll6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaq49XSNRwsraz9QWrvqfV33hJadZkxiFKsu/7/CZrQQIgBRB2KlyfMi3/nBsst36KQ+yy6nOvtO0s8hOX6Q+o+vE="}]},"maintainers":[{"name":"joshuagross","email":"joshua.gross@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/geoheat-1.3.0.tgz_1476736925168_0.8872071111109108"},"directories":{}},"1.3.1":{"name":"geoheat","version":"1.3.1","description":"In-memory geohash heatmap. Does not visualize, but constructs an in-memory index of latlongs that you can query to determine density of areas.","main":"lib/index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec","benchmark":"node benchmark/index.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+ssh://git@github.com/swift-nav/geoheat.git"},"keywords":["geoheat","heatmap","latlong","ecef"],"author":{"name":"Joshua Gross","email":"joshua.gross@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/swift-nav/geoheat/issues"},"devDependencies":{"babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.15.0","babel-preset-es2015":"^6.16.0","babel-preset-es2016":"^6.16.0","babel-preset-es2017":"^6.16.0","benchmark":"^2.1.1","istanbul":"^0.4.5","mocha":"^3.1.0"},"homepage":"https://github.com/swift-nav/geoheat#readme","dependencies":{"latlon-geohash":"^1.1.0","lodash.rangeright":"^4.2.0","lodash.zipobject":"^4.1.3"},"gitHead":"57af910063e33f761134bca2a1234e9276ad62e6","_id":"geoheat@1.3.1","_shasum":"f3b87b94a59ee5ae5835275fc32f63bc17f13325","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"joshuagross","email":"joshua.gross@gmail.com"},"dist":{"shasum":"f3b87b94a59ee5ae5835275fc32f63bc17f13325","tarball":"https://registry.npmjs.org/geoheat/-/geoheat-1.3.1.tgz","integrity":"sha512-DgS+ZqsEDQymf4o4iYDlHRvOprrALFdpnnY5R/GpCFwqj+fm1JS2Z6OeSiWdacWtgELMdZrl0W/Q3UTes+Obxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAgEEstB3d77lpHLfMEtDVyhw19CK0gX2mKaSwXa+T0gIgLcKegbqZa0CGi7o8sgZFygNOo3DCCEM1BuuJxWsHeYo="}]},"maintainers":[{"name":"joshuagross","email":"joshua.gross@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/geoheat-1.3.1.tgz_1477504580236_0.47102554817683995"},"directories":{}}},"readme":"# geoheat\nJavascript: In-memory geohash heatmap. Does not visualize, but constructs an in-memory index of geohashes that you can query to determine density of areas.\n\n# Install\n\n```\nnpm install --save geoheat\n```\n\n# Usage\n## Create a heatmap\n```\nvar GeohashHeatmap = require('geoheat');\nvar myMap = new GeohashHeatmap();\n```\n\n## Add some points to your map\n```\nmyMap.addLatLong(37.3939829, -122.0802028); // mountain view\nmyMap.addLatLong(37.758683, -122.457678); // san francisco - sutro open space preserve\nmyMap.addLatLong(37.768187, -122.504643); // san francisco - golden gate park\nmyMap.addLatLong(41.849295, -87.610306); // chicago\n```\n\n## Query regions to see heat\n```\nmyMap.getLatLongHeat(lat, lng, precision) === { weight, last }\nmyMap.getLatLongHeat(37.3939829, -122.0802028, 12) === { weight: 1, last: ${time} }\n```\n\nWill return a record to you indicating the relative weight of the location at the given precision,\nand the last time that a record was added for that location.\n\nThe \"precision\" field corresponds to the precision (length) as described on\n[movable-type's geohash page](http://www.movable-type.co.uk/scripts/geohash.html) by Chris Veness,\nroughly copied here:\n\n```\n1       ≤ 5,000km      ×      5,000km ~= 25000k km^2  (continents)\n2       ≤ 1,250km      ×      625km   ~= 781k   km^2\n3       ≤ 156km        ×      156km   ~= 24k    km^2\n4       ≤ 39.1km       ×      19.5km  ~= 764    km^2  (states or small countries)\n5       ≤ 4.89km       ×      4.89km  ~= 23.9   km^2  (large neighboring cities)\n6       ≤ 1.22km       ×      0.61km  ~= 0.74   km^2  (neighborhoods)\n7       ≤ 153m         ×      153m    ~= 0.02   km^2\n8       ≤ 38.2m        ×      19.1m   ~= 748.72 m^2   (large fields/buildings)\n9       ≤ 4.77m        ×      4.77m   ~= 22.75  m^2   (parcel of land)\n10      ≤ 1.19m        ×      0.596m  ~= 0.7    m^2   (distinguish trees)\n11      ≤ 149mm        ×      149mm   ~= 0.0221 m^2   (surveying)\n12      ≤ 37.2mm       ×      18.6mm  ~= 0.0007 m^2   (movement of tectonic plates)\n```\n\n# License\n\nMIT license. See `LICENSE` file.\n","maintainers":[{"email":"sokhea.ly@swift-nav.com","name":"sokhealy"},{"email":"patrick.crumley@swift-nav.com","name":"pcswiftnav"},{"email":"johnmichael.burke@swift-nav.com","name":"snav"},{"email":"leith@swiftnav.com","name":"ljbade"},{"email":"etiennebethon@gmail.com","name":"ebethon"},{"email":"oss-maintainers@swift-nav.com","name":"snav-jason"}],"time":{"modified":"2024-03-18T23:37:31.754Z","created":"2016-10-17T08:05:49.824Z","1.0.0":"2016-10-17T08:05:49.824Z","1.1.0":"2016-10-17T17:59:02.815Z","1.2.0":"2016-10-17T18:55:43.903Z","1.3.0":"2016-10-17T20:42:05.391Z","1.3.1":"2016-10-26T17:56:23.901Z","1.3.2":"2018-05-19T14:24:41.170Z"},"homepage":"https://github.com/swift-nav/geoheat#readme","keywords":["geoheat","heatmap","latlong","ecef"],"repository":{"type":"git","url":"git+ssh://git@github.com/swift-nav/geoheat.git"},"author":{"name":"Joshua Gross","email":"joshua.gross@gmail.com"},"bugs":{"url":"https://github.com/swift-nav/geoheat/issues"},"license":"MIT","readmeFilename":"README.md"}