GithubHelp home page GithubHelp logo

liuxiaozhen / latlng_conv_package Goto Github PK

View Code? Open in Web Editor NEW

This project forked from horseluke/latlng_conv_package

0.0 2.0 0.0 62 KB

地理坐标转换包php版本,集中解决国内的坐标偏移问题。涉及坐标:WGS-84(GPS原始坐标)、GCJ-02(火星坐标)、BD-09(百度坐标)

PHP 100.00%

latlng_conv_package's Introduction

latlng_conv_package

地理坐标转换包php版本,集中解决国内的坐标偏移问题。

当前已实现的转换见php_code目录。

使用时,需要考虑php.ini中precision的设置值(默认值一般也能很好工作)。考虑到性能问题,没有采用bc库运算。

已完成的坐标转换集中为当前热门的地图资源,涉及的有:

  • WGS-84(GPS原始坐标)
  • GCJ-02(俗称的火星坐标,当前应用于高德地图、google地图国内区域等)
  • BD-09(百度坐标,火星坐标上再加一层偏移)

代码参考众多人的代码,在此致谢。参考来源请见注释。

Licensed under the Apache License, Version 2.0 (the "License")

latlng_conv_package's People

Contributors

horseluke avatar

Watchers

James Cloos avatar  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.