{"_id":"@diasfs/proximity-search","name":"@diasfs/proximity-search","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@diasfs/proximity-search","version":"1.0.0","description":"Search points of interest in a given location","type":"module","main":"src/proximity-search.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/diasfs/proximity-search.git"},"keywords":["osm","poi","geohash"],"author":{"name":"Fábio Dias","email":"binho85@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diasfs/proximity-search/issues"},"homepage":"https://github.com/diasfs/proximity-search#readme","dependencies":{"ngeohash":"^0.6.3"},"gitHead":"6bfebecb06e72b74bd28e2049b0ad6b418cf1306","_id":"@diasfs/proximity-search@1.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-9z6Bw1v4q8dykfzO5CFTFLpDPmfHHzX8zB5CpqclKuK8e16YW6UeqIFRRyf1jOQjpNkFssKI8d5sRVDQmocdUA==","shasum":"ca39860c8a925185126b408894eaa51e7a6e9667","tarball":"https://registry.npmjs.org/@diasfs/proximity-search/-/proximity-search-1.0.0.tgz","fileCount":4,"unpackedSize":3622,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHT9Xz3wMN+WuSZAF7Wr18t1o/U024ONCF/5dLKoEf4zAiEAvreGDFOTeZsZxGYISBwxClun0L7fsHHBgwPkANX6fqg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9sRGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwmA/+N+PK/bh+An7yOFnwdXL0fSGxEdIP4GBRV13CGELRVcENyNq/\r\nJnIuznJNAbfoY9qnSLXPN1BleEU8XtW/vk+UL93jXKY5st6BdrFIBPS/jcgi\r\n409/TinRO3vVq+JqgR9LPsr/khEMkaWko9Hbuh0NQ5o4eVsJgxHTHmAOj2Pc\r\nvP5sYs1kie4IKlQC+Hb2OWPmXitkIwDBIosC4/CBGbH0KDTMzjS0LwFOdvsF\r\nWlj92bs0S6VeWWmbBvQbtmBNrIFfvNTPwtXVqBgEaVHi3dznkR5Gsaj9bZfA\r\n2XUMPPdETK3QOaZTfeagf9bFAypG+0tEeSUsU3Vxg3B20EgcuxARAK4DiJgy\r\nLUyXfDN/8YMJnBlWGFpUxgVPAw6d9YT78+4co+6vOTuqvQV9/RyCNqSqakVN\r\n/fIxieRKKGRyJR0xDYpj0m0G/Vl3lNmbIiP0dO6XnjoQKFtvO0qjhYFhksR0\r\nI5Gp+KtPIshLT8DgGTemybkt5vmHlHAYIpX9a/w+bG5M/edW7kfvwSZuOVfi\r\n3bJ9FeSFk7eiClnKh3HxGylLqJ2DBbTMwY1+v5892z4a48vqE0HMDk2FB+Eg\r\nhiEVnS9V82132zjcg2BCYbVDqm8vpQ0IbqMpdO61n78657LhsQW8o2hxWTry\r\nMq5raTv3LpcW2x11LPunz7osh7nGgG8uzcI=\r\n=1Vka\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"diasfs","email":"binho85@gmail.com"},"directories":{},"maintainers":[{"name":"diasfs","email":"binho85@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/proximity-search_1.0.0_1660339270235_0.7436081135224843"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-12T21:21:10.175Z","1.0.0":"2022-08-12T21:21:10.365Z","modified":"2022-08-12T21:21:10.491Z"},"maintainers":[{"name":"diasfs","email":"binho85@gmail.com"}],"description":"Search points of interest in a given location","homepage":"https://github.com/diasfs/proximity-search#readme","keywords":["osm","poi","geohash"],"repository":{"type":"git","url":"git+https://github.com/diasfs/proximity-search.git"},"author":{"name":"Fábio Dias","email":"binho85@gmail.com"},"bugs":{"url":"https://github.com/diasfs/proximity-search/issues"},"license":"MIT","readme":"# proximity-search\n\n## Install\n\n```bash\nnpm install @diasfs/proximity-search\n```\n\n## Usage\n```javascript\nimport ProximitySearch from \"proximity-search\"\n\nlet position = {\n    latitude: -30.07866404815339,\n    longitude: -51.03899232898299\n}\n\nlet options: {\n    neighbors: false,\n    precision: 5\n}\n\nProximitySearch.search(position, options)\n    .then(results => {\n        for(result of results) {\n            let { id, name, tags, lat, lng } = result\n            console.log({ id, name, tags, lat, lng })\n        }\n    })\n```\n\n\n## Options\n\n| Option | Default | Description |\n|:-------|:--------|:------------|\n| endpoint | https://cdn.jsdelivr.net/gh/diasfs/osm-proximity@latest/poi-data | The endpoint used to search the content. The final url will be the combination of endpoint, precision and the geohash of the position in the precision (https://[endpoint]/[precision]/[geohash].json). The default endpoint will only return results in brazil |\n| precision | 5 | The geohash precision used to calculate the position geohash. [Wikipedia](https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km)\n| neighbors | false | If true, search in the neighbors areas too |","readmeFilename":"README.md"}