9 #import <Foundation/Foundation.h>
10 #import <CoreLocation/CoreLocation.h>
11 #import <UIKit/UIKit.h>
18 typedef NS_ENUM(NSInteger, AMapLocationErrorCode)
20 AMapLocationErrorUnknown = 1,
21 AMapLocationErrorLocateFailed = 2,
22 AMapLocationErrorReGeocodeFailed = 3,
23 AMapLocationErrorTimeOut = 4,
24 AMapLocationErrorCanceled = 5,
25 AMapLocationErrorCannotFindHost = 6,
26 AMapLocationErrorBadURL = 7,
27 AMapLocationErrorNotConnectedToInternet = 8,
28 AMapLocationErrorCannotConnectToHost = 9,
29 AMapLocationErrorRegionMonitoringFailure=10,
30 AMapLocationErrorRiskOfFakeLocation = 11,
31 AMapLocationErrorNoFullAccuracyAuth = 12,
35 typedef NS_ENUM(NSInteger, AMapLocationRegionState)
37 AMapLocationRegionStateUnknow = 0,
38 AMapLocationRegionStateInside = 1,
39 AMapLocationRegionStateOutside = 2,
43 typedef NS_ENUM(NSInteger, AMapLocationReGeocodeLanguage)
45 AMapLocationReGeocodeLanguageDefault = 0,
46 AMapLocationReGeocodeLanguageChinse = 1,
47 AMapLocationReGeocodeLanguageEnglish = 2,
51 typedef NS_ENUM(NSInteger, AMapLocationAccuracyMode) {
52 AMapLocationFullAndReduceAccuracy = 0,
53 AMapLocationFullAccuracy,
54 AMapLocationReduceAccuracy
64 @property (nonatomic, copy) NSString *
country;
67 @property (nonatomic, copy) NSString *
province;
70 @property (nonatomic, copy) NSString *
city;
73 @property (nonatomic, copy) NSString *
district;
76 @property (nonatomic, copy) NSString *township
__attribute__((deprecated(
"该字段从v2.2.0版本起不再返回数据,建议您使用AMapSearchKit的逆地理功能获取.")));
79 @property (nonatomic, copy) NSString *neighborhood
__attribute__((deprecated(
"该字段从v2.2.0版本起不再返回数据,建议您使用AMapSearchKit的逆地理功能获取.")));
82 @property (nonatomic, copy) NSString *building
__attribute__((deprecated(
"该字段从v2.2.0版本起不再返回数据,建议您使用AMapSearchKit的逆地理功能获取.")));
85 @property (nonatomic, copy) NSString *
citycode;
88 @property (nonatomic, copy) NSString *
adcode;
91 @property (nonatomic, copy) NSString *
street;
94 @property (nonatomic, copy) NSString *
number;
97 @property (nonatomic, copy) NSString *
POIName;
100 @property (nonatomic, copy) NSString *
AOIName;
104 #pragma mark - AMapLocationPoint
110 @property (nonatomic, assign) CGFloat latitude;
113 @property (nonatomic, assign) CGFloat longitude;
129 @property (nonatomic, copy) NSString *pId;
132 @property (nonatomic, copy) NSString *name;
135 @property (nonatomic, copy) NSString *type;
138 @property (nonatomic, copy) NSString *typeCode;
141 @property (nonatomic, copy) NSString *address;
147 @property (nonatomic, copy) NSString *tel;
153 @property (nonatomic, copy) NSString *
city;
164 @property (nonatomic, copy) NSString *cityCode;
167 @property (nonatomic, copy) NSString *districtCode;
173 @property (nonatomic, copy) NSArray <NSArray<AMapLocationPoint *> *> *polylinePoints;
178 typedef NS_ENUM(NSUInteger, AMapLocationCoordinateType)
180 AMapLocationCoordinateTypeBaidu = 0,
181 AMapLocationCoordinateTypeMapBar,
182 AMapLocationCoordinateTypeMapABC,
183 AMapLocationCoordinateTypeSoSoMap,
184 AMapLocationCoordinateTypeAliYun,
185 AMapLocationCoordinateTypeGoogle,
186 AMapLocationCoordinateTypeGPS,