@pansy/lnglat-transform
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@pansy/lnglat-transform

NPM version GitHub stars

主要的经纬度坐标系

  • WGS-84: 标准坐标系(地球坐标系)
  • GCJ-02: 国测局坐标(火星坐标系),高德地图、腾讯地图
  • BD-09: 通过GCJ02进行进一步偏移算法得到,百度地图使用

📦 Install

pnpm i @pansy/lnglat-transform

🦄 Usage

import { gcj02ToWgs84, wgs84ToGcj02, } from '@pansy/lnglat-transform'

wgs84ToGcj02(116.404, 39.915)
gcj02ToWgs84(116.404, 39.915)

Package Sidebar

Install

npm i @pansy/lnglat-transform

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

17.3 kB

Total Files

8

Last publish

Collaborators

  • wangxingkang