Coder Social home page Coder Social logo

jzlocationconverter's Introduction

JZLocationConverter

Swift版本(使用边境线坐标,判断是否**大陆)

Quick start

JZLocationConverter 支持 CocoaPods. 添加下面配置到你的 Podfile:

pod 'JZLocationConverter'

WGS-84世界标准坐标、GCJ-02**国测局(火星坐标)、BD-09百度坐标系转换 目前有:

WGS-84 -> GCJ-02

此接口当输入坐标为**大陆以外时,仍旧返回WGS-84坐标

+ (CLLocationCoordinate2D)wgs84ToGcj02:(CLLocationCoordinate2D)location;

GCJ-02 -> WGS-84

此接口有1-2米左右的误差,需要精确的场景慎用

+ (CLLocationCoordinate2D)gcj02ToWgs84:(CLLocationCoordinate2D)location;

WGS-84 -> BD-09

+ (CLLocationCoordinate2D)wgs84ToBd09:(CLLocationCoordinate2D)location;

BD-09 -> WGS-84

+ (CLLocationCoordinate2D)bd09ToWgs84:(CLLocationCoordinate2D)location;

GCJ-02 -> BD-09

+ (CLLocationCoordinate2D)gcj02ToBd09:(CLLocationCoordinate2D)location;

BD-09 -> GCJ-02

此接口有1-2米左右的误差,需要精确的场景慎用

+ (CLLocationCoordinate2D)bd09ToGcj02:(CLLocationCoordinate2D)location;

jzlocationconverter's People

Contributors

qzs21 avatar bryant1410 avatar

Watchers

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