{"id":15761627,"url":"https://github.com/alrico88/geohashes-between","last_synced_at":"2025-04-21T03:32:38.479Z","repository":{"id":57249808,"uuid":"376278994","full_name":"alrico88/geohashes-between","owner":"alrico88","description":"Helper to get a list of geohashes between a start and end geohash, in a given direction","archived":false,"fork":false,"pushed_at":"2024-01-22T16:16:46.000Z","size":331,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T00:51:24.949Z","etag":null,"topics":["coordinates","geohash","geojson"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/geohashes-between","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alrico88.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-12T11:59:33.000Z","updated_at":"2024-04-13T09:16:14.000Z","dependencies_parsed_at":"2024-06-21T14:14:24.574Z","dependency_job_id":null,"html_url":"https://github.com/alrico88/geohashes-between","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fgeohashes-between","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fgeohashes-between/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fgeohashes-between/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fgeohashes-between/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alrico88","download_url":"https://codeload.github.com/alrico88/geohashes-between/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249991184,"owners_count":21357219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coordinates","geohash","geojson"],"created_at":"2024-10-04T11:03:16.497Z","updated_at":"2025-04-21T03:32:38.236Z","avatar_url":"https://github.com/alrico88.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geohashes-between\n\nGet a list of geohashes between two geohashes, or between two coordinates.\n\n## Installation\n\nUsing npm, `npm i geohashes-between`.\n\nUsing yarn, `yarn add geohashes-between`.\n\n## Usage\n\nUsing `import`\n\n```javascript\nimport { getGeohashesBetweenTwoGeohashes } from 'geohashes-between';\n```\n\nIn a CommonJS environment\n\n```javascript\nconst { getGeohashesBetweenTwoGeohashes } = require('geohashes-between');\n```\n\nThen:\n\n```javascript\nconst list = getGeohashesBetweenTwoGeohashes('ezep', 'ezex');\n// list is ['ezer']\n```\n\nOr:\n\n```javascript\nconst pointA = [-3.684166, 40.416763];\nconst pointB = [-3.720741, 40.364335];\n\nconst list = getGeohashesBetweenCoordinates(pointA, pointB, 6);\n// list is ['ezjmuj', 'ezjmuh','ezjmu5', 'ezjmgg','ezjmgf', 'ezjmgc','ezjmgb', 'ezjmg8','ezjmex', 'ezjmew','ezjmeq', 'ezjmem','ezjmek']\n```\n\n## Table of contents\n\n### Functions\n\n- [getBBoxRingGeohashes](#getbboxringgeohashes)\n- [getGeohashesBetweenCoordinates](#getgeohashesbetweencoordinates)\n- [getGeohashesBetweenTwoGeohashes](#getgeohashesbetweentwogeohashes)\n\n## Functions\n\n### getBBoxRingGeohashes\n\n▸ **getBBoxRingGeohashes**(`bbox`, `precision`): `string`[]\n\nFind the geohashes of a given precision that form a BBox ring\n\n#### Parameters\n\n| Name        | Type     | Description                         |\n| :---------- | :------- | :---------------------------------- |\n| `bbox`      | `BBox`   | The BBox to find the ring geohashes |\n| `precision` | `number` | Precision for the geohashes         |\n\n#### Returns\n\n`string`[]\n\nGeohashes list\n\n---\n\n### getGeohashesBetweenCoordinates\n\n▸ **getGeohashesBetweenCoordinates**(`pointA`, `pointB`, `precision`): `string`[]\n\nFinds the geohashes of a given precision between two coordinates\n\n**`export`**\n\n#### Parameters\n\n| Name        | Type       | Description                    |\n| :---------- | :--------- | :----------------------------- |\n| `pointA`    | `Position` | Starting coordinate [lon, lat] |\n| `pointB`    | `Position` | End coordinate [lon, lat]      |\n| `precision` | `number`   | Desired geohash precision      |\n\n#### Returns\n\n`string`[]\n\nThe list of geohashes between those coords\n\n---\n\n### getGeohashesBetweenTwoGeohashes\n\n▸ **getGeohashesBetweenTwoGeohashes**(`geohashStart`, `geohashEnd`, `includeStartEnd?`): `string`[]\n\nGets a list of geohashes between a starting and end geohash\nBoth geohashes should be of the same precision\n\n**`export`**\n\n#### Parameters\n\n| Name              | Type      | Default value | Description          |\n| :---------------- | :-------- | :------------ | :------------------- |\n| `geohashStart`    | `string`  | `undefined`   | The starting geohash |\n| `geohashEnd`      | `string`  | `undefined`   | The ending geohash   |\n| `includeStartEnd` | `boolean` | `false`       | -                    |\n\n#### Returns\n\n`string`[]\n\nThe list of geohashes between start and end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrico88%2Fgeohashes-between","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falrico88%2Fgeohashes-between","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrico88%2Fgeohashes-between/lists"}