@isvend/coord-transform
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@isvend/coord-transform", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "百度坐标系 (BD-09) 、 火星坐标系 (GCJ-02)、WSG84坐标系互转", | ||
@@ -10,6 +10,14 @@ "main": "./dist/index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gee1k/coord-transform.git" | ||
}, | ||
"keywords": ["coord-transform", "coord", "transform", "baidu", "gaode", "bd09", "gcj02", "wgs84"], | ||
"files": ["dist", "LICENSE", "README.md", "package.json"], | ||
"author": "Svend <svend.jin@gmail.com>", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/gee1k/coord-transform/issues" | ||
}, | ||
"homepage": "https://github.com/gee1k/coord-transform#readme", | ||
"devDependencies": { | ||
@@ -16,0 +24,0 @@ "typescript": "^5.1.6" |
@@ -1,1 +0,39 @@ | ||
# da | ||
## 坐标转换 | ||
> 来自 [https://github.com/wandergis/coordtransform](https://github.com/wandergis/coordtransform) | ||
一个现代的、支持 TypeScript 的百度坐标(BD09)、火星坐标(GCJ02)、和WGS84坐标系相互转换。 | ||
### 安装 | ||
```bash | ||
// npm | ||
npm install @isvend/coord-transform | ||
// pnpm | ||
pnpm add @isvend/coord-transform | ||
``` | ||
### 使用 | ||
```js | ||
import { | ||
transformWGS84ToBD09, | ||
transformBD09ToGCJ02, | ||
transformBD09ToWGS84, | ||
transformGCJ02ToWGS84, | ||
transformWGS84ToGCJ02, | ||
} from "@isvend/coord-transform"; | ||
const lng = 116.404; | ||
const lat = 39.915; | ||
console.log("WGS84 to GCJ02", transformWGS84ToGCJ02(lng, lat)); | ||
console.log("GCJ02 to WGS84", transformGCJ02ToWGS84(lng, lat)); | ||
console.log("WGS84 to BD09", transformWGS84ToBD09(lng, lat)); | ||
console.log("BD09 to WGS84", transformBD09ToWGS84(lng, lat)); | ||
console.log("BD09 to GCJ02", transformBD09ToGCJ02(lng, lat)); | ||
console.log("GCJ02 to BD09", transformBD09ToGCJ02(lng, lat)); | ||
``` |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
15234
6
0
1
40
0