{"id":19989015,"url":"https://github.com/icemap/coordinate","last_synced_at":"2025-11-26T10:03:36.767Z","repository":{"id":119432479,"uuid":"463547597","full_name":"Icemap/coordinate","owner":"Icemap","description":"A golang library for geographic coordinate conversions. Can convert coordinate from [lWGS84]/[Web Mercator]/[Mercator]/[GCJ02].","archived":false,"fork":false,"pushed_at":"2023-02-27T06:01:07.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T11:49:35.295Z","etag":null,"topics":["geography","golang"],"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/Icemap.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}},"created_at":"2022-02-25T13:42:44.000Z","updated_at":"2024-07-22T08:01:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"52aeff32-d794-495a-9f03-a6a39e3b98a1","html_url":"https://github.com/Icemap/coordinate","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"4c41d4eccf4ed7e37115695864f790b8a9be46be"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemap%2Fcoordinate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemap%2Fcoordinate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemap%2Fcoordinate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icemap%2Fcoordinate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Icemap","download_url":"https://codeload.github.com/Icemap/coordinate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241430299,"owners_count":19961633,"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":["geography","golang"],"created_at":"2024-11-13T04:45:06.504Z","updated_at":"2025-11-26T10:03:36.715Z","avatar_url":"https://github.com/Icemap.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coordinate\n\n![build_badge](https://github.com/Icemap/coordinate/workflows/Go/badge.svg)\n\nEnglish | [中文](README_ch.md)\n\nA golang library for geographic coordinate conversions, supporting the following coordinate systems:\n\n- [WGS84](https://en.wikipedia.org/wiki/World_Geodetic_System)\n- [Web Mercator](https://en.wikipedia.org/wiki/Web_Mercator_projection)\n- [Mercator](https://en.wikipedia.org/wiki/Mercator_projection)\n- [GCJ02](https://en.wikipedia.org/wiki/Restrictions_on_geographic_data_in_China#GCJ-02)\n\n## Feature\n\n- Convert coordinates between this coordinate systems\n\n## Install\n\n```bash\n$ go get -u github.com/Icemap/coordinate\n```\n\n## Example\n\n### `GCJ02` coordinate system to `WGS84` coordinate system\n\n```go\nimport \"github.com/Icemap/coordinate\"\n\ngcj02Point := Coordinate{X: 110.0, Y: 20.0}\nwgs84Point, err := coordinate.Convert(coordinate.GCJ02, coordinate.WGS84, gcj02Point)\n```\n\n### `GCJ02` coordinate system to `Web Mercator` coordinate system\n\n```go\nimport \"github.com/Icemap/coordinate\"\n\ngcj02Point := Coordinate{X: 110.0, Y: 20.0}\nwebMercatorPoint, err := coordinate.Convert(coordinate.GCJ02, coordinate.WebMercator, gcj02Point)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficemap%2Fcoordinate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficemap%2Fcoordinate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficemap%2Fcoordinate/lists"}