Swift版本(使用边境线坐标,判断是否中国大陆)
JZLocationConverter 支持 CocoaPods. 添加下面配置到你的 Podfile:
pod 'JZLocationConverter'
WGS-84世界标准坐标、GCJ-02中国国测局(火星坐标)、BD-09百度坐标系转换 目前有:
+ (CLLocationCoordinate2D)wgs84ToGcj02:(CLLocationCoordinate2D)location;
+ (CLLocationCoordinate2D)gcj02ToWgs84:(CLLocationCoordinate2D)location;
+ (CLLocationCoordinate2D)wgs84ToBd09:(CLLocationCoordinate2D)location;
+ (CLLocationCoordinate2D)bd09ToWgs84:(CLLocationCoordinate2D)location;
+ (CLLocationCoordinate2D)gcj02ToBd09:(CLLocationCoordinate2D)location;
+ (CLLocationCoordinate2D)bd09ToGcj02:(CLLocationCoordinate2D)location;