You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
858 B

//
// TQLocationConverter.h
//
//
// Created by qfu on 9/16/14.
// Copyright (c) 2014 tinyq. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
@interface TQLocationConverter : NSObject
/**
*
*/
+(BOOL)isLocationOutOfChina:(CLLocationCoordinate2D)location;
/**
* WGS-84GCJ-02():
*/
+(CLLocationCoordinate2D)transformFromWGSToGCJ:(CLLocationCoordinate2D)wgsLoc;
/**
* GCJ-02():
*/
+(CLLocationCoordinate2D)transformFromGCJToBaidu:(CLLocationCoordinate2D)p;
/**
* GCJ-02():
*/
+(CLLocationCoordinate2D)transformFromBaiduToGCJ:(CLLocationCoordinate2D)p;
/**
* GCJ-02()WGS-84:
*/
+(CLLocationCoordinate2D)transformFromGCJToWGS:(CLLocationCoordinate2D)p;
@end