TencentLocationSDK_iOS_v3.1
TencentLBSLocation.h
1 //
2 // TencentLBSLocation.h
3 // TencentLBS
4 //
5 // Created by mirantslu on 16/4/19.
6 // Copyright © 2016年 Tencent. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <CoreLocation/CoreLocation.h>
11 
12 NS_ASSUME_NONNULL_BEGIN
13 
14 #define TENCENTLBS_DEBUG 0
15 
16 @interface TencentLBSPoi : NSObject<NSSecureCoding, NSCopying>
17 
18 @property (nonatomic, copy) NSString *uid;
19 @property (nonatomic, copy) NSString *name;
20 @property (nonatomic, copy) NSString *address;
21 @property (nonatomic, copy) NSString *catalog;
22 @property (nonatomic, assign) double longitude;
23 @property (nonatomic, assign) double latitude;
24 @property (nonatomic, assign) double distance;
25 
26 @end
27 
28 @interface TencentLBSLocation : NSObject<NSSecureCoding, NSCopying>
29 
33 @property (nonatomic, strong) CLLocation *location;
34 
38 @property (nonatomic, assign) NSInteger areaStat;
39 
43 @property (nonatomic, copy, nullable) NSString *buildingId;
44 
48 @property (nonatomic, copy, nullable) NSString *buildingFloor;
49 
53 @property (nonatomic, assign) NSInteger indoorLocationType;
54 
59 @property (nonatomic, copy, nullable) NSString *name;
60 
65 @property (nonatomic, copy, nullable) NSString *address;
66 
71 @property (nonatomic, assign) NSInteger nationCode;
72 
77 @property (nonatomic, copy, nullable) NSString *code;
78 
83 @property (nonatomic, copy, nullable) NSString *nation;
84 
89 @property (nonatomic, copy, nullable) NSString *province;
90 
95 @property (nonatomic, copy, nullable) NSString *city;
96 
101 @property (nonatomic, copy, nullable) NSString *district;
102 
107 @property (nonatomic, copy, nullable) NSString *town;
108 
113 @property (nonatomic, copy, nullable) NSString *village;
114 
119 @property (nonatomic, copy, nullable) NSString *street;
120 
125 @property (nonatomic, copy, nullable) NSString *street_no;
126 
131 @property (nonatomic, strong, nullable) NSArray<TencentLBSPoi*> *poiList;
132 
136 - (double)distanceFromLocation:(const TencentLBSLocation *)location;
137 
138 // 测试使用
139 #if TENCENTLBS_DEBUG
140 @property (nonatomic, copy, nullable) NSString *halleyTime;
141 #endif
142 
143 @end
144 
145 NS_ASSUME_NONNULL_END
double longitude
当前POI的经度
Definition: TencentLBSLocation.h:22
double distance
当前POI与当前位置的距离
Definition: TencentLBSLocation.h:24
NSString * name
当前POI的名称
Definition: TencentLBSLocation.h:19
NSString * address
当前POI的地址
Definition: TencentLBSLocation.h:20
Definition: TencentLBSLocation.h:28
NSString * catalog
当前POI的类别
Definition: TencentLBSLocation.h:21
double latitude
当前POI的纬度
Definition: TencentLBSLocation.h:23
Definition: TencentLBSLocation.h:16
NSString * uid
当前POI的uid
Definition: TencentLBSLocation.h:18