npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@tomiaa/coordinate-transform

v0.0.4

Published

百度,高德,腾讯,天地图,WSG84坐标经纬度互相转换

Downloads

23

Readme

百度,高德,腾讯,天地图,WSG84 坐标经纬度互相转换

demo

百度,高德,腾讯,天地图等坐标互转

TypeScript

export type Transform = (coods: number[]) => number[];
/**
 * 墨卡托坐标(EPSG:3857)转=> 地球坐标(EPSG:4326)
 */
export declare const mercator2WSG84: Transform;
/**
 * 地球坐标(EPSG:4326)转=> 墨卡托坐标(EPSG:3857)
 */
export declare const WSG842Mercator: Transform;
/**
 * 墨卡托坐标(EPSG:3857)=> 天地图(EPSG:4490)
 */
export declare const mercator2CGCS2000: Transform;
/**
 * 地球坐标(EPSG:4326)=> 天地图(EPSG:4490)
 */
export declare const WSG842CGCS2000: Transform;
/**
 * 天地图(EPSG:4490)=> 墨卡托坐标(EPSG:3857)
 */
export declare const CGCS20002Mercator: Transform;
/**
 * 天地图(EPSG:4490)=> 地球坐标(EPSG:4326)
 */
export declare const CGCS20002WSG84: Transform;
/**
 * 火星坐标(GCJ02)=> 地球坐标(EPSG:4326)
 */
export declare const GCJ022WSG84: Transform;
/**
 * 地球坐标(EPSG:4326)=> 火星坐标(GCJ02)
 */
export declare const WSG842GCJ02: Transform;
/**
 * 墨卡托坐标(EPSG:3857)=> 火星坐标(GCJ02)
 */
export declare const mercator2GCJ02: Transform;
/**
 * 火星坐标(GCJ02)=> 墨卡托坐标(EPSG:3857)
 */
export declare const GCJ022Mercator: Transform;
/**
 * 墨卡托坐标(EPSG:3857)=> 百度墨卡托(baiduMercator)
 */
export declare const mercator2BaiduMercator: Transform;
/**
 * 百度墨卡托(baiduMercator)=> 墨卡托坐标(EPSG:3857)
 */
export declare const baiduMercator2Mercator: Transform;
/**
 * 地球坐标(EPSG:4326)=> 百度墨卡托(baiduMercator)
 */
export declare const WSG842BaiduMercator: Transform;
/**
 * 百度墨卡托(baiduMercator)=> 地球坐标(EPSG:4326)
 */
export declare const baiduMercator2WSG84: Transform;
/**
 * 地球坐标 => 百度坐标(BD:09)
 */
export declare const WSG842BD09: Transform;
/**
 * 百度坐标(BD:09)=> 地球坐标
 */
export declare const BD092WSG84: Transform;
/**
 * 百度坐标(BD:09)=> 墨卡托坐标(EPSG:3857)
 */
export declare const BD092Mercator: Transform;
/**
 * 百度坐标(BD:09)=> 墨卡托坐标(EPSG:3857)
 */
export declare const mercator2BD09: Transform;
/**
 * 百度墨卡托(baiduMercator)=> 百度坐标(BD:09)
 */
export declare const baiduMercator2BD09: Transform;
/**
 * 百度坐标(BD:09)=> 百度墨卡托(baiduMercator)
 */
export declare const BD092BaiduMercator: Transform;
/**
 * 百度坐标(BD:09)=> 火星坐标(GCJ02)
 */
export declare const BD092GCJ02: Transform;
/**
 * 火星坐标(GCJ02)=> 百度坐标(BD:09)
 */
export declare const GCJ022BD09: Transform;
/**
 * 百度坐标(BD:09)=> 天地图(EPSG:4490)
 */
export declare const BD092CGCS2000: Transform;
/**
 * 天地图(EPSG:4490)=> 百度坐标(BD:09)
 */
export declare const CGCS20002BD09: Transform;
/**
 * 火星坐标(GCJ02)=> 天地图(EPSG:4490)
 */
export declare const GCJ022CGC2000: Transform;
/**
 * 天地图(EPSG:4490)=> 火星坐标(GCJ02)
 */
export declare const CGCS20002GCJ02: Transform;
/**
 * 百度墨卡托 => 天地图(EPSG:4490)
 */
export declare const baiduMercator2CGC2000: Transform;
/**
 * 天地图(EPSG:4490)=> 百度墨卡托
 */
export declare const CGCS20002BaiduMercator: Transform;