Latest 1.0.0
Homepage https://github.com/liuliangju/LJMapCoordinateCorrection
License MIT
Platforms ios 7.0, requires ARC
Authors

License MIT 
CocoaPods 
Support 
Platform 
Build Status

Features

地图地理坐标的相互转换

Installation

With CocoaPods, add this line to your Podfile.

pod 'LJMapCoordinateCorrection', '~> 1.0.0' 

Manually:
Drag all files under LJMapCoordinateCorrection/Classes folder into your project.

Method

// 判断是否在中国:

+ (BOOL)isLocationOutOfChina:(CLLocationCoordinate2D)location

// 将WGS-84转为GCJ-02(火星坐标):

+ (CLLocationCoordinate2D)transformFromWGSToGCJ:(CLLocationCoordinate2D)wgsLoc;

// 将GCJ-02(火星坐标)转为百度坐标:

+ (CLLocationCoordinate2D)transformFromGCJToBaidu:(CLLocationCoordinate2D)gcjLoc;

// 将百度坐标转为GCJ-02(火星坐标):

+ (CLLocationCoordinate2D)transformFromBaiduToGCJ:(CLLocationCoordinate2D)bdLoc;

// 将GCJ-02(火星坐标)转为WGS-84:

+ (CLLocationCoordinate2D)transformFromGCJToWGS:(CLLocationCoordinate2D)gcjLoc;

许可证

LJMapCoordinateCorrection 使用 MIT 许可证,详情见 LICENSE 文件。

Latest podspec

{
    "name": "LJMapCoordinateCorrection",
    "version": "1.0.0",
    "summary": "u5730u56feu5730u7406u5750u6807u7684u76f8u4e92u8f6cu6362",
    "homepage": "https://github.com/liuliangju/LJMapCoordinateCorrection",
    "license": "MIT",
    "authors": {
        "liuliangju": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/liuliangju/LJMapCoordinateCorrection.git",
        "tag": "1.0.0"
    },
    "source_files": "LJMapCoordinateCorrection/Classes/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This