wgs84_gcj02
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published
npm install wgs84_gcj02

two methods:

wgs84_gcj02 -> params: { longitude: number | string, latitude: number | string }
gcj02_2_wgs84 -> params: { longitude: number | string, latitude: number | string }
return { longitude: xxxx, latitude: xxxx }
// convert wgs84 to gcj02

import wgs84_gcj02 from 'wgs84_gcj02'

const { longitude, latitude } = wgs84_gcj02.wgs84_gcj02({ longitude: 121.4603, latitude: 31.2594 })
// convert gcj02 to wgs84

import { gcj02_2_wgs84 } from 'wgs84_gcj02'

const { longitude, latitude } = gcj02_2_wgs84({ longitude: 121.4603, latitude: 31.2594 })

/wgs84_gcj02/

    Package Sidebar

    Install

    npm i wgs84_gcj02

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.44 kB

    Total Files

    7

    Last publish

    Collaborators

    • a-drowned-fish