{"id":34851878,"url":"https://github.com/umahmood/haversine","last_synced_at":"2026-03-14T16:21:58.382Z","repository":{"id":47304403,"uuid":"42614435","full_name":"umahmood/haversine","owner":"umahmood","description":"Haversine is a Go library which implements the haversine formula.","archived":false,"fork":false,"pushed_at":"2024-01-05T16:52:22.000Z","size":136,"stargazers_count":78,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-18T13:02:01.634Z","etag":null,"topics":["go","golang","haversine-formula"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/umahmood.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-16T21:29:09.000Z","updated_at":"2025-02-11T21:32:07.000Z","dependencies_parsed_at":"2022-09-26T17:50:33.691Z","dependency_job_id":null,"html_url":"https://github.com/umahmood/haversine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umahmood/haversine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fhaversine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fhaversine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fhaversine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fhaversine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umahmood","download_url":"https://codeload.github.com/umahmood/haversine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umahmood%2Fhaversine/sbom","scorecard":{"id":908279,"data":{"date":"2025-08-11","repo":{"name":"github.com/umahmood/haversine","commit":"808ab04add26660fd241ddb7973886c6dd6669e8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T18:12:08.363Z","repository_id":47304403,"created_at":"2025-08-24T18:12:08.363Z","updated_at":"2025-08-24T18:12:08.363Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28035467,"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","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"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":["go","golang","haversine-formula"],"created_at":"2025-12-25T19:24:14.540Z","updated_at":"2025-12-25T19:24:22.274Z","avatar_url":"https://github.com/umahmood.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/umahmood/haversine.svg?branch=master)](https://travis-ci.org/umahmood/haversine)\n\n# Haversine\n\nPackage haversine is a Go library which implements the haversine formula. The \nhaversine formula gives great-circle distances between two points on a sphere \nfrom their longitudes and latitudes. The sphere in this case is the surface of \nthe Earth.\n\n![Earth great circle](https://i.imgur.com/iD3X3Ax.png)\n\n*The dotted yellow line is an arc of a great circle. It gives the shortest \ndistance between the two yellow points. Image courtesy USGS.*\n\n# Installation\n\n\u003e go get github.com/umahmood/haversine\n\n\u003e cd $GOPATH/src/github.com/umahmood/haversine/\n\n\u003e go test -v ./...\n\n# Usage\n\nThe below example shows how to calculate the shortest path between two \ncoordinates on the surface of the Earth.\n\n    package main\n\n    import (\n        \"fmt\"\n\n        \"github.com/umahmood/haversine\"\n    )\n\n    func main() {\n        oxford := haversine.Coord{Lat: 51.45, Lon: 1.15}  // Oxford, UK\n        turin  := haversine.Coord{Lat: 45.04, Lon: 7.42}  // Turin, Italy\n        mi, km := haversine.Distance(oxford, turin)\n        fmt.Println(\"Miles:\", mi, \"Kilometers:\", km)\n    }\n\n# Documenation\n\n\u003e http://godoc.org/github.com/umahmood/haversine\n\n# References\n\n* https://plus.maths.org/content/lost-lovely-haversine\n* https://en.wikipedia.org/wiki/Haversine_formula\n\n# License\n\nSee the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumahmood%2Fhaversine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumahmood%2Fhaversine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumahmood%2Fhaversine/lists"}