{"id":13413008,"url":"https://github.com/wroge/wgs84","last_synced_at":"2025-10-05T05:15:49.756Z","repository":{"id":50885598,"uuid":"190915256","full_name":"wroge/wgs84","owner":"wroge","description":"A zero-dependency Go package for coordinate transformations.","archived":false,"fork":false,"pushed_at":"2025-02-22T09:44:17.000Z","size":16478,"stargazers_count":138,"open_issues_count":5,"forks_count":18,"subscribers_count":2,"default_branch":"v2","last_synced_at":"2025-05-24T11:04:25.478Z","etag":null,"topics":["coordinate-conversion","coordinate-converter","coordinate-transformation","epsg","etrs89","geodetic-datum","latitude","longitude","nad83","osgb36","utm","web-mercator","wgs84"],"latest_commit_sha":null,"homepage":"","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/wroge.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":"2019-06-08T17:17:59.000Z","updated_at":"2025-05-01T07:03:22.000Z","dependencies_parsed_at":"2025-03-22T06:11:12.205Z","dependency_job_id":null,"html_url":"https://github.com/wroge/wgs84","commit_stats":null,"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"purl":"pkg:github/wroge/wgs84","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wroge%2Fwgs84","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wroge%2Fwgs84/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wroge%2Fwgs84/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wroge%2Fwgs84/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wroge","download_url":"https://codeload.github.com/wroge/wgs84/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wroge%2Fwgs84/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278411261,"owners_count":25982368,"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-10-05T02:00:06.059Z","response_time":54,"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":["coordinate-conversion","coordinate-converter","coordinate-transformation","epsg","etrs89","geodetic-datum","latitude","longitude","nad83","osgb36","utm","web-mercator","wgs84"],"created_at":"2024-07-30T20:01:32.276Z","updated_at":"2025-10-05T05:15:49.739Z","avatar_url":"https://github.com/wroge.png","language":"Go","funding_links":[],"categories":["Geographic","地理","位置信息与地理GEO处理库","Relational Databases"],"sub_categories":["Search and Analytic Databases","Advanced Console UIs","检索及分析资料库","SQL 查询语句构建库"],"readme":"[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white)](https://pkg.go.dev/github.com/wroge/wgs84@v2.0.0-alpha.13)\n\n## WGS84 - Coordinate Transformations\n\n```\ngo get github.com/wroge/wgs84/v2@v2.0.0-alpha.13\n```  \n\n\nI am currently in the process of rewriting the package. Some things will change and some new features will be added. One of these features is the support of NTv2 grid transformations and other projections, such as Krovak. If you would like to help or have any comments, please report them in the issues.\n\n### Web Mercator\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/wroge/wgs84/v2\"\n)\n\nfunc main() {\n\ttransform := wgs84.Transform(wgs84.EPSG(4326), wgs84.EPSG(3857)).Round(3)\n\n\teast, north, _ := transform(10, 50, 0)\n\n\tfmt.Println(east, north)\n\t// 1.113194908e+06 6.446275841e+06\n\n\t// echo 10 50 | cs2cs +init=epsg:4326 +to +init=epsg:3857 -d 3\n\t// 1113194.908     6446275.841\n}\n```\n\n### OSGB\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/wroge/wgs84/v2\"\n)\n\nfunc main() {\n\ttransform := wgs84.Transform(wgs84.EPSG(4326), wgs84.EPSG(27700)).Round(3)\n\n\teast, north, h := transform(-2.25, 52.25, 0)\n\n\tfmt.Println(east, north, h)\n\t// 383029.296 261341.615 0\n\n\t// echo -2.25 52.25 | cs2cs +init=epsg:4326 +to +init=epsg:27700 -d 3\n\t// 383029.296 261341.615 0.000\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwroge%2Fwgs84","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwroge%2Fwgs84","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwroge%2Fwgs84/lists"}