百度定位SDK for iOS v1.7 类参考
BMKLocation.h
1 //
2 // BMKLocation.h
3 // LocationComponent
4 //
5 // Created by baidu on 2017/8/16.
6 // Copyright © 2017年 baidu. All rights reserved.
7 //
8 
9 #ifndef BMKLocation_h
10 #define BMKLocation_h
11 
12 #import <CoreLocation/CoreLocation.h>
13 #import "BMKLocationReGeocode.h"
14 
19 typedef NS_ENUM(int, BMKLocationProvider) {
20 
21  BMKLocationProviderIOS = 0,
22  BMKLocationProviderOther
23 
24 };
25 
27 @interface BMKLocation : NSObject
28 
30 @property(nonatomic, copy, readonly) CLLocation * _Nullable location;
31 
33 @property(nonatomic, copy) BMKLocationReGeocode * _Nullable rgcData;
34 
36 @property(nonatomic, assign) BMKLocationProvider provider;
37 
39 @property(nonatomic, retain) NSString * _Nullable locationID;
40 
41 /*
42  * floorString
43  *
44  * Discussion:
45  * 室内定位成功时返回的楼层信息,ex:f1
46  */
47 @property(readonly, nonatomic, copy, nullable) NSString *floorString;
48 
49 /*
50  * buildingID
51  *
52  * Discussion:
53  * 室内定位成功时返回的百度建筑物ID
54  */
55 @property(readonly, nonatomic, copy, nullable) NSString *buildingID;
56 
57 /*
58  * buildingName
59  *
60  * Discussion:
61  * 室内定位成功时返回的百度建筑物名称
62  */
63 @property(readonly, nonatomic, copy, nullable) NSString *buildingName;
64 
65 
66 /*
67  * extraInfo
68  *
69  * Discussion:
70  * 定位附加信息,如停车位code识别结果、停车位code示例、vdr推算结果置信度等
71  */
72 @property(readonly, nonatomic, copy, nullable) NSDictionary * extraInfo;
73 
80 - (id _Nonnull)initWithLocation:(CLLocation * _Nullable)loc withRgcData:(BMKLocationReGeocode * _Nullable)rgc;
81 
91 -(id _Nonnull)initWithLocation:(CLLocation * _Nullable)location floorString:(NSString * _Nullable)floorString buildingID:(NSString * _Nullable)buildingID
92  buildingName:(NSString * _Nullable)buildingName extraInfo:(NSDictionary * _Nullable)info withRgcData:(BMKLocationReGeocode * _Nullable)rgc;
93 
94 
95 @end
96 
97 #endif /* BMKLocation_h */
BMKLocationReGeocode类。描述跟地址有关的信息.
Definition: BMKLocationReGeocode.h:12
描述百度iOS 定位数据
Definition: BMKLocation.h:27
BMKLocationProvider provider
BMKLocation 位置来源
Definition: BMKLocation.h:36
BMKLocationReGeocode *_Nullable rgcData
BMKLocation 地址数据
Definition: BMKLocation.h:33
NSString *_Nullable locationID
BMKLocation 位置ID
Definition: BMKLocation.h:39
CLLocation *_Nullable location
BMKLocation 位置数据
Definition: BMKLocation.h:30