{"id":13468357,"url":"https://github.com/gee1k/coord-transform","last_synced_at":"2025-05-15T13:31:34.090Z","repository":{"id":181165999,"uuid":"666339467","full_name":"gee1k/coord-transform","owner":"gee1k","description":"一个现代的、支持 TypeScript 的百度坐标（BD09）、火星坐标（GCJ02）、和WGS84坐标系相互转换。","archived":false,"fork":false,"pushed_at":"2023-07-14T09:46:01.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T09:36:06.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/gee1k.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}},"created_at":"2023-07-14T09:13:14.000Z","updated_at":"2024-12-18T12:27:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"60ededf7-fd13-4a38-b4fd-1f739e4c2c5a","html_url":"https://github.com/gee1k/coord-transform","commit_stats":null,"previous_names":["gee1k/coord-transform"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee1k%2Fcoord-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee1k%2Fcoord-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee1k%2Fcoord-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee1k%2Fcoord-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gee1k","download_url":"https://codeload.github.com/gee1k/coord-transform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254349355,"owners_count":22056336,"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":[],"created_at":"2024-07-31T15:01:09.374Z","updated_at":"2025-05-15T13:31:29.057Z","avatar_url":"https://github.com/gee1k.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"## 坐标转换\n\u003e 来自 [https://github.com/wandergis/coordtransform](https://github.com/wandergis/coordtransform)\n\n一个现代的、支持 TypeScript 的百度坐标（BD09）、火星坐标（GCJ02）、和WGS84坐标系相互转换。\n\n### 安装\n\n```bash\n// npm\nnpm install @isvend/coord-transform\n\n// pnpm\npnpm add @isvend/coord-transform\n```\n\n### 使用\n\n```js\nimport {\n  transformWGS84ToBD09,\n  transformBD09ToGCJ02,\n  transformBD09ToWGS84,\n  transformGCJ02ToWGS84,\n  transformWGS84ToGCJ02,\n} from \"@isvend/coord-transform\";\n\nconst lng = 116.404;\nconst lat = 39.915;\n\nconsole.log(\"WGS84 to GCJ02\", transformWGS84ToGCJ02(lng, lat));\nconsole.log(\"GCJ02 to WGS84\", transformGCJ02ToWGS84(lng, lat));\n\nconsole.log(\"WGS84 to BD09\", transformWGS84ToBD09(lng, lat));\nconsole.log(\"BD09 to WGS84\", transformBD09ToWGS84(lng, lat));\n\nconsole.log(\"BD09 to GCJ02\", transformBD09ToGCJ02(lng, lat));\nconsole.log(\"GCJ02 to BD09\", transformBD09ToGCJ02(lng, lat));\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgee1k%2Fcoord-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgee1k%2Fcoord-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgee1k%2Fcoord-transform/lists"}