CLLocation+Sino.h 597 B

1234567891011121314151617181920
  1. //
  2. // CLLocation+Sino.h
  3. //
  4. // Created by i0xbean@gmail.com on 13-4-26.
  5. // 火星坐标系转换扩展
  6. //
  7. // earth(国外 WGS84), mars(国内 GCJ-02), bearPaw(百度 BD-09) 坐标系间相互转换
  8. // 未包含 mars2earth. 需要这个可参考 http://xcodev.com/131.html
  9. #import <CoreLocation/CoreLocation.h>
  10. @interface CLLocation (Sino)
  11. - (CLLocation*)locationMarsFromEarth;
  12. //- (CLLocation*)locationEarthFromMars; // 未实现
  13. - (CLLocation*)locationBearPawFromMars;
  14. - (CLLocation*)locationMarsFromBearPaw;
  15. +(CLLocationCoordinate2D) CoordMars:(double)lat :(double)lng;
  16. @end