GithubHelp home page GithubHelp logo

ellipsoid's Introduction

ellipsoid

火星坐标、百度坐标、WGS84坐标相互转换

Hat tip to ellipsoid. I just needed something simpler.

npm install ellipsoid
 const Ellipsoid = require('ellipsoid');
 let ellipsoid=new Ellipsoid();
 let lon=120,lat=37;
 //火星坐标系 (GCJ-02) 转 百度坐标系 (BD-09) 
 ellipsoid.bd09togcj02(lon, lat);
 //火星坐标系 (GCJ-02) 转 百度坐标系 (BD-09) 
 ellipsoid.gcj02tobd09(lng, lat);
 //WGS84 转 火星坐标系 (GCj02)
 ellipsoid.wgs84togcj02(lng, lat);
 //火星坐标系 (GCj02) 转 WGS84
 ellipsoid.gcj02towgs84(lng, lat);
 

ellipsoid's People

Contributors

jvy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.