{"id":16125502,"url":"https://github.com/semibran/manhattan","last_synced_at":"2025-03-18T13:30:51.306Z","repository":{"id":130492052,"uuid":"94948389","full_name":"semibran/manhattan","owner":"semibran","description":":straight_ruler: Calculate the Manhattan distance between two points","archived":false,"fork":false,"pushed_at":"2017-07-16T02:58:55.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-20T12:54:44.586Z","etag":null,"topics":["distance","geometry","manhattan"],"latest_commit_sha":null,"homepage":"","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/semibran.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":"2017-06-21T01:02:13.000Z","updated_at":"2018-07-27T07:59:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9d3d90b-9254-459e-9a9f-0b8ee761dcb5","html_url":"https://github.com/semibran/manhattan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmanhattan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmanhattan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmanhattan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmanhattan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/manhattan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221711878,"owners_count":16868047,"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":["distance","geometry","manhattan"],"created_at":"2024-10-09T21:29:50.957Z","updated_at":"2024-10-27T17:39:39.385Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# manhattan\n\u003e Calculate the [Manhattan distance](https://en.wikipedia.org/wiki/Manhattan_distance) between two points\n\n![Manhattan distance](diagram.png \"skrrt\")\n\nThis module exposes the function `distance(a, b)`, which determines the Manhattan distance between points `a` and `b`.\n```js\n\u003e const distance = require('manhattan')\n\u003e distance([2, 5], [4, 8])\n5\n```\n[![NPM](https://nodei.co/npm/manhattan.png?mini)](https://www.npmjs.com/package/manhattan)\n\n## see also\n- [`semibran/euclidean`](https://github.com/semibran/euclidean) - calculate Euclidean distance\n- [`semibran/chebyshev`](https://github.com/semibran/chebyshev) - calculate Chebyshev distance\n- [`semibran/vector`](https://github.com/semibran/vector) - more vector math\n- [`kchapelier/von-neumann`](https://github.com/kchapelier/von-neumann) - find all points within a given Manhattan distance\n\n## license\n[MIT](https://opensource.org/licenses/MIT) © [Brandon Semilla](https://git.io/semibran)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fmanhattan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Fmanhattan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fmanhattan/lists"}