{"id":23985480,"url":"https://github.com/ypankaj007/haversine-formula","last_synced_at":"2026-06-18T00:31:45.627Z","repository":{"id":98249558,"uuid":"201017516","full_name":"ypankaj007/haversine-formula","owner":"ypankaj007","description":"Haversine formula to find distance between two points on a sphere","archived":false,"fork":false,"pushed_at":"2019-10-30T06:39:45.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T18:46:28.144Z","etag":null,"topics":["distance","go","haversine-formula","sphere"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ypankaj007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-08-07T09:26:16.000Z","updated_at":"2021-09-29T00:16:14.000Z","dependencies_parsed_at":"2023-05-18T23:15:40.930Z","dependency_job_id":null,"html_url":"https://github.com/ypankaj007/haversine-formula","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ypankaj007/haversine-formula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypankaj007%2Fhaversine-formula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypankaj007%2Fhaversine-formula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypankaj007%2Fhaversine-formula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypankaj007%2Fhaversine-formula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ypankaj007","download_url":"https://codeload.github.com/ypankaj007/haversine-formula/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ypankaj007%2Fhaversine-formula/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34471638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","go","haversine-formula","sphere"],"created_at":"2025-01-07T14:15:14.868Z","updated_at":"2026-06-18T00:31:45.610Z","avatar_url":"https://github.com/ypankaj007.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haversine Formula\n\n Haversine formula calculates the distance between two points by using latitude and logitude on a sphere. There are lot of applications using navigation system and haversine formula are playing big role to calcutate the shortest distance between locations.\n # Formula\n \n Suppose we have two ponits p1 and p2. let radius of p1 is (φ1, λ1) and p2 is (φ2, λ2).\n So difference between p1 and p2, by using haversine formula, is \n```\na = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)\nc = 2 ⋅ atan2( √a, √(1−a) )\nd = R ⋅ c\n```\nwhere Δφ = φ2 - φ1, Δλ = λ2 - λ1 and R is the Earth radius (63,71,000 m)\n\n\nLicense\n----\n\nMIT\n\n**Free Software, Hell Yeah!**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fypankaj007%2Fhaversine-formula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fypankaj007%2Fhaversine-formula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fypankaj007%2Fhaversine-formula/lists"}