{"id":21594495,"url":"https://github.com/emanuelef/go-geo-3d","last_synced_at":"2025-06-27T19:36:40.522Z","repository":{"id":174239820,"uuid":"651940342","full_name":"emanuelef/go-geo-3d","owner":"emanuelef","description":"go-geo-3d implements functions to calculate distances from geospatial points considering altitude","archived":false,"fork":false,"pushed_at":"2024-04-01T12:13:53.000Z","size":34,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T23:42:01.495Z","etag":null,"topics":["3d","geospatial-analysis","geospatial-processing","go"],"latest_commit_sha":null,"homepage":"https://emanuelef.github.io/geo-3d-website/","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/emanuelef.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,"zenodo":null}},"created_at":"2023-06-10T15:05:28.000Z","updated_at":"2024-12-02T22:08:24.000Z","dependencies_parsed_at":"2025-04-10T23:41:53.917Z","dependency_job_id":"d18ca21c-86d8-42d0-ab24-f2cfd9ab422d","html_url":"https://github.com/emanuelef/go-geo-3d","commit_stats":{"total_commits":39,"total_committers":3,"mean_commits":13.0,"dds":0.3846153846153846,"last_synced_commit":"191e58fa2e8956635a67b564789de3c9e9f7bf1d"},"previous_names":["emanuelef/go-geo-3d"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/emanuelef/go-geo-3d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelef%2Fgo-geo-3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelef%2Fgo-geo-3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelef%2Fgo-geo-3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelef%2Fgo-geo-3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanuelef","download_url":"https://codeload.github.com/emanuelef/go-geo-3d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelef%2Fgo-geo-3d/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262319707,"owners_count":23293070,"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":["3d","geospatial-analysis","geospatial-processing","go"],"created_at":"2024-11-24T17:18:36.012Z","updated_at":"2025-06-27T19:36:40.492Z","avatar_url":"https://github.com/emanuelef.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-geo-3d\n\n[![Linter](https://github.com/emanuelef/go-geo-3d/actions/workflows/linter.yml/badge.svg)](https://github.com/emanuelef/go-geo-3d/actions/workflows/linter.yml)\n[![Test](https://github.com/emanuelef/go-geo-3d/actions/workflows/test.yml/badge.svg)](https://github.com/emanuelef/go-geo-3d/actions/workflows/test.yml)\n![Coverage](https://raw.githubusercontent.com/emanuelef/go-geo-3d/badges/.badges/main/coverage.svg)\n\n\n----\n\ngo-geo-3d is a module with zero dependencies to calculate distances of 3d geospatial points.\n\n## Installation\n```bash\ngo get github.com/emanuelef/go-geo-3d\n```\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tgeo \"github.com/emanuelef/go-geo-3d\"\n)\n\nfunc main() {\n\t// Coordinates are in degrees and altitude in metres\n\tstart := geo.NewCoord3d(51.39674, -0.36148, 1104.9)\n\tend := geo.NewCoord3d(51.38463, -0.36819, 1219.2)\n\n\t// Distance in metres between two 3D coordinates\n\tdistance := geo.Distance3D(start, end)\n\n\tfmt.Printf(\"Distance 3D line from start to end: %.3fm\\n\", distance)\n\n\tposA := geo.NewCoord3d(51.3909, -0.364, 15)\n\t// Minimum distance in metres from one 3D point to a line in 3D coordinates\n\tminPoint, _ := posA.ClosestPointOnLine(start, end)\n        // Lat: 51.39181 Lon: -0.36421 Alt: 1151.37514\n\n\tdistance = geo.Distance3D(posA, minPoint)\n\n\tfmt.Printf(\"Distance from one point to a line: %.3fm\\n\", distance)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelef%2Fgo-geo-3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanuelef%2Fgo-geo-3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelef%2Fgo-geo-3d/lists"}