{"id":19356507,"url":"https://github.com/lunaticmonk/great-circle-distance","last_synced_at":"2025-04-23T10:32:51.198Z","repository":{"id":57253857,"uuid":"181286976","full_name":"lunaticmonk/great-circle-distance","owner":"lunaticmonk","description":"A npm package to calculate the distance between two coordinates on the earth.","archived":false,"fork":false,"pushed_at":"2019-04-20T15:26:19.000Z","size":8,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T00:38:43.638Z","etag":null,"topics":["coordinate-distance","coordinates","great-circle-distance","latitude-and-longitude"],"latest_commit_sha":null,"homepage":null,"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/lunaticmonk.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}},"created_at":"2019-04-14T09:33:37.000Z","updated_at":"2023-03-04T08:25:23.000Z","dependencies_parsed_at":"2022-08-31T22:11:48.240Z","dependency_job_id":null,"html_url":"https://github.com/lunaticmonk/great-circle-distance","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/lunaticmonk%2Fgreat-circle-distance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaticmonk%2Fgreat-circle-distance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaticmonk%2Fgreat-circle-distance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaticmonk%2Fgreat-circle-distance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lunaticmonk","download_url":"https://codeload.github.com/lunaticmonk/great-circle-distance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250416806,"owners_count":21427062,"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":["coordinate-distance","coordinates","great-circle-distance","latitude-and-longitude"],"created_at":"2024-11-10T07:04:40.949Z","updated_at":"2025-04-23T10:32:46.184Z","avatar_url":"https://github.com/lunaticmonk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1  align=\"center\"\u003e❯❯❯ Great Circle Distance\u003c/h1\u003e\n\u003cp  align=\"center\"\u003eA npm package to calculate the distance between two coordinates on the earth. Read more about it \u003ca href=\"https://en.wikipedia.org/wiki/Great-circle_distance\" target=\"_blank\"\u003ehere.\u003c/a\u003e\u003c/p\u003e\n\u003cp  align=\"center\"\u003e\n\u003cimg  src=\"./assets/great-circle-distance.svg\"\u003e\nSource: Wikipedia\n\u003c/p\u003e\n\n### Installation and Usage\n\n```sh\nnpm install great-circle-distance --save\n```\n\nor\n\n```sh\nyarn add great-circle-distance\n```\n\n```sh\nconst { greatCircleDistance } = require(\"great-circle-distance\");\n\nconst coords = {\n    lat1: \"12.9611159\",\n    lng1: \"77.6362214\",\n    lat2: \"12.9611159\",\n    lng2: \"75.6362214\"\n};\n\ngreatCircleDistance(coords);\n// =\u003e 216.723363263401 kms\n```\n\n### Node.js version\n\n```\nany version greater than v7.6.x.\n```\n\n### Contribute\n\nOpen a pull request against the master.\n\nAlso, ⭐ the repo to make it reach to others.\n\n### LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunaticmonk%2Fgreat-circle-distance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunaticmonk%2Fgreat-circle-distance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunaticmonk%2Fgreat-circle-distance/lists"}