地图坐标的互相转换
Objective-C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LJMapCoordinateCorrection.xcodeproj
LJMapCoordinateCorrection
LJMapCoordinateCorrectionTests
LJMapCoordinateCorrectionUITests
.gitignore
.travis.yml
LICENSE
LJMapCoordinateCorrection.podspec
README.md

README.md

LJMapCoordinateCorrection

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 文件。