{"id":21878138,"url":"https://github.com/suifengtec/gocoord","last_synced_at":"2025-10-12T20:54:27.900Z","repository":{"id":57492018,"uuid":"187807299","full_name":"suifengtec/gocoord","owner":"suifengtec","description":"在BD09,GCJ02,WGS84坐标系之间相互转换点的坐标。","archived":false,"fork":false,"pushed_at":"2021-01-16T13:57:26.000Z","size":15,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T06:03:18.386Z","etag":null,"topics":["bd09","gcj-02","gcj02","go","golang","golang-library","golang-package","wgs-84","wgs84"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suifengtec.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}},"created_at":"2019-05-21T09:37:17.000Z","updated_at":"2025-06-09T10:07:31.000Z","dependencies_parsed_at":"2022-08-28T13:10:52.544Z","dependency_job_id":null,"html_url":"https://github.com/suifengtec/gocoord","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suifengtec/gocoord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suifengtec%2Fgocoord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suifengtec%2Fgocoord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suifengtec%2Fgocoord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suifengtec%2Fgocoord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suifengtec","download_url":"https://codeload.github.com/suifengtec/gocoord/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suifengtec%2Fgocoord/sbom","scorecard":{"id":857723,"data":{"date":"2025-08-18","repo":{"name":"github.com/suifengtec/gocoord","commit":"a0cd8c71c95982487d24b9e8b0777a75064f7056"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/22 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T00:20:49.593Z","repository_id":57492018,"created_at":"2025-08-24T00:20:49.593Z","updated_at":"2025-08-24T00:20:49.593Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275691106,"owners_count":25510500,"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-09-17T02:00:09.119Z","response_time":84,"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":["bd09","gcj-02","gcj02","go","golang","golang-library","golang-package","wgs-84","wgs84"],"created_at":"2024-11-28T08:11:46.446Z","updated_at":"2025-09-18T00:46:08.274Z","avatar_url":"https://github.com/suifengtec.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gocoord\n\n[![wercker status](https://app.wercker.com/status/78da03fb6f650111e017cc31965a5ce7/s/master \"wercker status\")](https://app.wercker.com/project/byKey/78da03fb6f650111e017cc31965a5ce7)\n\n在BD09,GCJ02,WGS84坐标系之间相互转换点的坐标。\n\n* 高德地图、腾讯地图以及谷歌中国区地图使用的是GCJ-02坐标系;\n* 百度地图使用的是BD-09坐标系;\n* 底层接口(HTML5 Geolocation或iOS、安卓API)通过GPS设备获取的坐标使用的是WGS-84坐标系;\n\n使用场景实例: 客户端或者远端的GPS设备上报GPS使用的WGS-84坐标系的点,从数据库中查找附近的点或者在百度地图或高德地图上显示某些点的位置。\n\n## 可用方法\n\n见文件[gocoord_test.go](gocoord_test.go)\n\n\n## 使用\n\n```bash\n\ngo get github.com/suifengtec/gocoord\n\n```\n\n## 用例\n\n源文件中导入并使用,下面是部分方法的使用示例:\n\n```go\n\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/suifengtec/gocoord\"\n)\n\nfunc main() {\n\tp := gocoord.Position{Lon: 113.739873, Lat: 34.356696}\n\t//gocoord.BD09ToGCJ02(p)\n\t// 谷歌地图显示为\n\t// 113.733355， 34.350604\n\t// 实际输出为gocoord.Position{Lon:113.73337197243862, Lat:34.350630274732744}\n\tfmt.Println(\"BD09转GCJ02\")\n\tp2 := gocoord.BD09ToGCJ02(p)\n\tfmt.Printf(\"%#v\\n\", p2)\n\n\t//gocoord.BD09ToWGS84(p)\n\t// 实际输出为 gocoord.Position{Lon:113.7272281721665, Lat:34.351951705458674}\n\tfmt.Println(\"BD09转WGS84\")\n\tp2 = gocoord.BD09ToWGS84(p)\n\tfmt.Printf(\"%#v\\n\", p2)\n\n}\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuifengtec%2Fgocoord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuifengtec%2Fgocoord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuifengtec%2Fgocoord/lists"}