TencentMapSDK_iOS_3D_v5.7.0
QMSSearchResult.h
1 //
2 // QMSSearchResult.h
3 // QMapSearchKit
4 //
5 // Created by xfang on 14/11/5.
6 // Copyright (c) 2014年 tencent. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 #import <CoreLocation/CoreLocation.h>
11 
12 NS_ASSUME_NONNULL_BEGIN
13 
17 FOUNDATION_EXPORT NSString * const kQMSRouteWalkingMode;
18 
19 
23 typedef NSInteger QMSResultCode;
24 
25 #pragma mark -
26 
30 @interface QMSBaseResult : NSObject <NSCopying, NSCoding>
31 
32 @end
33 
38 
42 @property (nonatomic, assign) QMSResultCode status;
43 
47 @property (nonatomic, copy) NSString *message;
48 
52 @property (nonatomic, copy) NSString *request_id;
53 
54 @end
55 
56 #pragma mark - POI Result
57 
58 typedef NS_ENUM(NSInteger, QMSPoiType)
59 {
60  QMSPoiNormalType = 0, //普通POI
61  QMSPoiBusStopType = 1, //公交车站
62  QMSPoiMRTType = 2, //地铁站
63  QMSPoiBusLineType = 3, //公交路线
64  QMSPoiAdministrativeDivisionType = 4, //行政区划
65 };
66 
71 
75 @property (nonatomic, strong) NSNumber *adcode;
76 
80 @property (nonatomic, copy) NSString *province;
81 
85 @property (nonatomic, copy) NSString *city;
86 
90 @property (nonatomic, copy) NSString *district;
91 
92 @end
93 
98 
102 @property (nonatomic, copy) NSString *id_;
103 
107 @property (nonatomic, copy) NSString *title;
108 
112 @property (nonatomic, copy) NSString *address;
113 
117 @property (nonatomic, copy) NSString *tel;
118 
122 @property (nonatomic, copy) NSString *category;
123 
127 @property (nonatomic, copy) NSString *category_code;
128 
132 @property (nonatomic, assign) QMSPoiType type;
133 
137 @property (nonatomic, assign) CLLocationCoordinate2D location;
138 
142 @property (nonatomic, strong) NSArray <NSValue *> *boundary DEPRECATED_ATTRIBUTE;
143 
147 @property (nonatomic, assign) double _distance;
148 
152 @property (nonatomic, strong) QMSPoiAdInfo *ad_info;
153 
154 @end
155 
156 
161 
165 @property (nonatomic, copy) NSString *parent_id;
166 
170 @property (nonatomic, copy) NSString *id_;
171 
175 @property (nonatomic, copy) NSString *title;
176 
180 @property (nonatomic, copy) NSString *address;
181 
185 @property (nonatomic, copy) NSString *tel;
186 
190 @property (nonatomic, copy) NSString *category;
191 
195 @property (nonatomic, copy) NSString *category_code;
196 
200 @property (nonatomic, assign) QMSPoiType type;
201 
205 @property (nonatomic, assign) CLLocationCoordinate2D location;
206 
210 @property (nonatomic, strong) QMSPoiAdInfo *ad_info;
211 
212 @end
213 
218 
222 @property (nonatomic, assign) NSUInteger count;
223 
227 @property (nonatomic, strong) NSArray <QMSPoiData *> *dataArray;
228 
232 @property (nonatomic, nullable,strong) NSArray <QMSPoiSubData *> *sub_pois;
233 
234 @end
235 
236 #pragma mark - Suggestion Result
237 
242 
246 @property (nonatomic, copy) NSString *id_;
247 
251 @property (nonatomic, copy) NSString *title;
252 
256 @property (nonatomic, copy) NSString *address;
257 
261 @property (nonatomic, strong) NSNumber *adcode;
262 
266 @property (nonatomic, copy) NSString *province;
267 
271 @property (nonatomic, copy) NSString *city;
272 
276 @property (nonatomic, copy) NSString *district;
277 
281 @property (nonatomic, assign) QMSPoiType type;
282 
286 @property (nonatomic, assign) double _distance;
287 
291 @property (nonatomic, assign) CLLocationCoordinate2D location;
292 
296 @property (nonatomic, copy) NSString *category;
297 
301 @property (nonatomic, nullable, copy) NSString *category_code;
302 
303 @end
304 
309 
313 @property (nonatomic, copy) NSString *parent_id;
314 
318 @property (nonatomic, copy) NSString *id_;
319 
320 
324 @property (nonatomic, copy) NSString *title;
325 
329 @property (nonatomic, copy) NSString *address;
330 
334 @property (nonatomic, assign) CLLocationCoordinate2D location;
335 
339 @property (nonatomic, strong) NSNumber *adcode;
340 
344 @property (nonatomic, copy) NSString *city;
345 
349 @property (nonatomic, copy) NSString *category;
350 
354 @property (nonatomic, nullable, copy) NSString *category_code;
355 
356 @end
357 
362 
366 @property (nonatomic, assign) NSUInteger count;
367 
371 @property (nonatomic, copy) NSArray <QMSSuggestionPoiData *> *dataArray;
372 
376 @property (nonatomic, nullable, copy) NSArray <QMSSuggestionSubPoiData *> *sub_pois;
377 
378 @end
379 
380 #pragma mark - Reverse Geo Code
381 
386 
390 @property (nonatomic, nullable, copy) NSString *recommend;
391 
395 @property (nonatomic, nullable, copy) NSString *rough;
396 
400 @property (nonatomic, nullable, copy) NSString *standard_address;
401 
402 @end
403 
408 
412 @property (nonatomic, nullable, copy) NSString *nation;
413 
417 @property (nonatomic, copy) NSString *province;
418 
422 @property (nonatomic, copy) NSString *city;
423 
427 @property (nonatomic, nullable, copy) NSString *district;
428 
432 @property (nonatomic, nullable, copy) NSString *street;
433 
437 @property (nonatomic, nullable, copy) NSString *street_number;
438 
439 @end
440 
445 
449 @property (nonatomic, copy) NSString *nation_code;
450 
454 @property (nonatomic, copy) NSString *adcode;
455 
459 @property (nonatomic, copy) NSString *name;
460 
464 @property (nonatomic, assign) CLLocationCoordinate2D location;
465 
469 @property (nonatomic, copy) NSString *nation;
470 
474 @property (nonatomic, copy) NSString *province;
475 
479 @property (nonatomic, copy) NSString *city;
480 
484 @property (nonatomic, nullable, copy) NSString *district;
485 
489 @property (nonatomic, copy) NSString *city_code;
490 
494 @property (nonatomic, nullable, copy) NSString *phone_area_code;
495 
496 @end
497 
502 
506 @property (nonatomic, copy) NSString *id_;
507 
511 @property (nonatomic, nullable, copy) NSString *title;
512 
516 @property (nonatomic, assign) CLLocationCoordinate2D location;
517 
521 @property (nonatomic, assign) double _distance;
522 
526 @property (nonatomic, nullable, copy) NSString *_dir_desc;
527 
528 @end
529 
534 
538 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *famous_area;
539 
544 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *landmark_l1;
545 
550 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *landmark_l2;
551 
555 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *town;
556 
560 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *street;
561 
565 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *street_number;
566 
570 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *water;
571 
575 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *crossroad;
576 
580 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *business_area;
581 
585 @property (nonatomic, nullable, strong) QMSReGeoCodeFamousArea *ocean;
586 
587 @end
588 
593 
597 @property (nonatomic, copy) NSString *adcode;
598 
602 @property (nonatomic, nullable, copy) NSString *province;
603 
607 @property (nonatomic, copy) NSString *city;
608 
612 @property (nonatomic, nullable, copy) NSString *district;
613 
614 @end
615 
620 
624 @property (nonatomic, nullable, copy) NSString *id_;
625 
629 @property (nonatomic, nullable, copy) NSString *title;
630 
634 @property (nonatomic, nullable, copy) NSString *address;
635 
639 @property (nonatomic, nullable, copy) NSString *category;
640 
644 @property (nonatomic, assign) CLLocationCoordinate2D location;
645 
649 @property (nonatomic, assign) double _distance;
650 
654 @property (nonatomic, nullable) QMSReGeoCodePoiAdInfo *ad_info;
655 
659 @property (nonatomic, nullable, copy) NSString *_dir_desc;
660 
661 
662 @end
663 
668 
672 @property (nonatomic, copy) NSString *address;
673 
677 @property (nonatomic, nullable, strong) QMSReGeoCodeFormattedAddresses *formatted_addresses;
678 
682 @property (nonatomic, strong) QMSAddressComponent *address_component;
683 
687 @property (nonatomic, strong) QMSReGeoCodeAdInfo *ad_info;
688 
692 @property (nonatomic, nullable, strong) QMSReGeoCodeAddressReference *address_reference;
693 
697 @property (nonatomic, nullable, strong) NSArray <QMSReGeoCodePoi *> *poisArray;
698 
702 @property (nonatomic, assign) NSUInteger poi_count;
703 
704 @end
705 
706 #pragma mark - Geo code
707 
712 
716 @property (nonatomic, copy) NSString *adcode;
717 
718 @end
719 
724 
728 @property (nonatomic, assign) CLLocationCoordinate2D location;
729 
733 @property (nonatomic, strong) QMSAddressComponent *address_components;
734 
738 @property (nonatomic, strong) QMSGeoCodeAdInfo *ad_info;
739 
757 @property (nonatomic, assign) NSInteger level;
758 
765 @property (nonatomic, assign) NSUInteger reliability;
766 
767 @end
768 
769 #pragma mark - Walking & Bicyling & Driving
770 
771 @class QMSRoutePlan, QMSRouteStep;
772 
777 
781 @property (nonatomic, copy) NSArray <QMSRoutePlan *> *routes;
782 
783 @end
784 
785 #pragma mark - Bicycling 的详情
786 
791 
795 @property (nonatomic, copy) NSArray <QMSRoutePlan *> *routes;
796 
797 @end
798 
799 #pragma mark - Driving 的详情
800 
805 
809 @property (nonatomic, assign) NSInteger adcode;
810 
811 @end
812 
825 @property (nonatomic) int status;
826 
827 @end
828 
833 
837 @property (nonatomic) double fare;
838 
839 @end
840 
845 
849 @property (nonatomic, strong) NSArray <NSNumber *> *polyline_idx;
850 
854 @property (nonatomic, assign) double distance;
855 
859 @property (nonatomic, assign) int level;
860 
864 @property (nonatomic) double speed;
865 
866 @end
867 
872 
876 @property (nonatomic, nullable, copy) NSString *title;
877 
881 @property (nonatomic) CLLocationCoordinate2D location;
882 
886 @property (nonatomic) CGFloat distance;
887 
891 @property (nonatomic) CGFloat duration;
892 
896 @property (nonatomic) NSInteger polyline_idx;
897 
898 @end
899 
900 
905 
909 @property (nonatomic ,copy) NSString *mode;
910 
914 @property (nonatomic) CGFloat distance;
915 
919 @property (nonatomic) CGFloat duration;
920 
924 @property (nonatomic, nullable, copy) NSString *direction;
925 
929 @property (nonatomic, copy) NSArray <NSValue *> *polyline;
930 
934 @property (nonatomic, nullable, copy) NSArray <QMSRouteStep *> *steps;
935 
939 @property (nonatomic, nullable, strong) QMSDriveRestriction *restriction;
940 
944 @property (nonatomic, nullable, strong) QMSTaxiFare *taxi_fare;
945 
949 @property (nonatomic, assign) CGFloat toll;
950 
955 @property (nonatomic) CGFloat toll_distance;
956 
960 @property (nonatomic, assign) int traffic_light_count;
961 
965 @property (nonatomic, nullable, copy) NSArray <NSString *> *tags;
966 
970 @property (nonatomic, nullable, copy) NSArray <QMSTrafficCondition *> *speed;
974 @property (nonatomic, nullable, copy) NSArray <QMSRouteWayPoint *> *waypoints;
975 
979 @property (nonatomic, nullable, copy) NSArray <QMSRoutePlanCityInfo *> *cities;
980 
981 @end
982 
983 
988 
992 @property (nonatomic, copy) NSString *instruction;
993 
997 @property (nonatomic, nullable, copy) NSString *road_name;
998 
1002 @property (nonatomic, nullable, copy) NSString *dir_desc;
1003 
1007 @property (nonatomic) CGFloat distance;
1008 
1012 @property (nonatomic) CGFloat duration;
1013 
1017 @property (nonatomic, nullable, copy) NSString *act_desc;
1018 
1022 @property (nonatomic, nullable, copy) NSString *accessorial_desc;
1023 
1031 @property (nonatomic, copy) NSArray <NSNumber *> *polyline_idx;
1032 
1036 @property (nonatomic, assign) int type;
1037 
1038 @end
1039 
1040 #pragma mark - Driving
1041 
1046 
1050 @property (nonatomic, copy) NSArray <QMSRoutePlan *> *routes;
1051 
1052 @end
1053 
1054 #pragma mark - Trucking
1055 
1060 
1061 @end
1062 
1067 
1071 @property (nonatomic, nullable, copy) NSString *instruction;
1072 
1076 @property (nonatomic, nullable, copy) NSString *road_name;
1077 
1081 @property (nonatomic, nullable, copy) NSString *dir_desc;
1082 
1086 @property (nonatomic) CGFloat distance;
1087 
1091 @property (nonatomic, nullable, copy) NSString *act_desc;
1092 
1100 @property (nonatomic, nullable, copy) NSArray <NSNumber *> *polyline_idx;
1101 
1105 @property (nonatomic, nullable, copy) NSString *accessorial_desc;
1106 
1107 @end
1108 
1113 
1117 @property (nonatomic, copy) NSString *mode;
1118 
1122 @property (nonatomic) CGFloat distance;
1123 
1127 @property (nonatomic) CGFloat duration;
1128 
1132 @property (nonatomic, assign) int traffic_light_count;
1133 
1137 @property (nonatomic) CGFloat toll;
1138 
1142 @property (nonatomic, nullable, copy) NSArray <NSValue *> *polyline;
1143 
1147 @property (nonatomic, nullable, copy) NSArray <NSString *> *tags;
1148 
1152 @property (nonatomic, nullable, strong) QMSDriveRestriction *restriction;
1153 
1157 @property (nonatomic, nullable, copy) NSArray <QMSTruckingRouteStep *> *steps;
1158 
1162 @property (nonatomic, nullable, copy) NSArray <QMSTruckingTrafficCondition *> *speed;
1163 
1168 @property (nonatomic) CGFloat toll_distance;
1169 
1173 @property (nonatomic, nullable, copy) NSArray <QMSRoutePlanCityInfo *> *cities;
1174 
1175 @end
1176 
1181 
1185 @property (nonatomic, copy) NSArray <QMSTruckingRoutePlan *> *routes;
1186 
1187 @end
1188 
1189 #pragma mark - Busing
1190 
1196 
1200 @property (nonatomic) CGFloat distance;
1201 
1205 @property (nonatomic) CGFloat duration;
1206 
1210 @property (nonatomic, copy) NSString *bounds;
1211 
1215 @property (nonatomic, copy) NSArray <QMSBusingSegmentRoutePlan *> *steps;
1216 
1220 @property (nonatomic, nullable, strong) NSArray <NSString *> *tags;
1221 
1222 @end
1223 
1224 
1229 
1233 @property (nonatomic ,copy) NSString *mode;
1234 
1238 @property (nonatomic) CGFloat distance;
1239 
1243 @property (nonatomic) CGFloat duration;
1244 
1248 @property (nonatomic) CGFloat price DEPRECATED_ATTRIBUTE;
1249 
1253 @property (nonatomic) NSString *direction;
1254 
1258 @property (nonatomic, copy) NSArray <NSValue *> *polyline;
1259 
1263 @property (nonatomic, copy) NSArray <QMSBusingRouteTransitLine *> *lines;
1264 
1265 @end
1266 
1271 
1275 @property (nonatomic, copy) NSString *id_;
1276 
1280 @property (nonatomic, copy) NSString *title;
1281 
1282 @end
1283 
1288 
1292 @property (nonatomic, copy) NSString *id_;
1293 
1297 @property (nonatomic, copy) NSString *title;
1298 
1302 @property (nonatomic) CLLocationCoordinate2D location;
1303 
1307 @property (nonatomic, strong) QMSStationEntrance *exit;
1308 
1309 @end
1310 
1315 
1316 
1320 @property (nonatomic, copy) NSString *vehicle;
1321 
1325 @property (nonatomic, copy) NSString *id_;
1326 
1330 @property (nonatomic) CGFloat distance;
1331 
1335 @property (nonatomic) NSTimeInterval duration;
1336 
1340 @property (nonatomic) CGFloat price;
1341 
1345 @property (nonatomic, copy) NSString *title;
1346 
1350 @property (nonatomic, copy) NSArray <NSValue *> *polyline;
1351 
1355 @property (nonatomic) NSInteger station_count;
1356 
1360 @property (nonatomic, strong) NSArray <QMSBusStation *> *stations;
1361 
1365 @property (nonatomic, strong) QMSStationEntrance *destination;
1366 
1370 @property (nonatomic, strong) QMSBusStation *geton;
1371 
1375 @property (nonatomic, strong) QMSBusStation *getoff;
1376 
1380 @property (nonatomic, assign) int running_status;
1381 
1382 @end
1383 
1388 
1392 @property (nonatomic, copy) NSArray <QMSBusingRoutePlan *> *routes;
1393 
1394 @end
1395 
1396 
1397 #pragma mark - QMSDistrictSearchResult
1398 
1403 
1407 @property (nonatomic, copy) NSString *data_version;
1408 
1409 @end
1410 
1415 
1420 @property (nonatomic, copy) NSString *id_;
1421 
1425 @property (nonatomic, copy) NSString *name;
1426 
1430 @property (nonatomic, copy) NSString *fullname;
1431 
1435 @property (nonatomic, assign) CLLocationCoordinate2D location;
1436 
1440 @property (nonatomic, nullable, copy) NSArray <NSString *> *pinyin;
1441 
1445 @property (nonatomic, nullable, copy) NSArray <NSNumber *> *cidx;
1446 
1450 @property (nonatomic, copy) NSArray *polygon __attribute__ ((deprecated("use @property (nonatomic, copy) NSArray *polygons instead")));
1451 
1455 @property (nonatomic, nullable, copy) NSArray <NSArray <NSValue *> *> *polygons;
1456 
1457 @end
1458 
1463 
1468 @property (nonatomic, copy) NSArray <NSArray <QMSDistrictData *> *> *result;
1469 
1470 @end
1471 
1472 NS_ASSUME_NONNULL_END
QMSDistrictData
表示单个行政区划信息的数据结构
Definition: QMSSearchResult.h:1415
QMSDrivingRouteSearchResult
驾车路线检索结果
Definition: QMSSearchResult.h:1046
QMSBaseResult
检索结果的基类
Definition: QMSSearchResult.h:30
QMSWalkingRouteSearchResult
步行路线规划的检索结果
Definition: QMSSearchResult.h:777
QMSGeoCodeSearchResult
地址解析检索结果
Definition: QMSSearchResult.h:724
QMSReGeoCodeAddressReference
坐标相对位置参考
Definition: QMSSearchResult.h:534
QMSStationEntrance
出入口
Definition: QMSSearchResult.h:1271
QMSSuggestionPoiData
关键词提示检索Poi数据
Definition: QMSSearchResult.h:242
QMSAddressComponent
检索地址部件
Definition: QMSSearchResult.h:408
QMSReGeoCodeFamousArea
知名区域,如商圈或人们普遍认为有较高知名度的区域
Definition: QMSSearchResult.h:502
QMSDistrictSearchResult
行政区划检索的结果
Definition: QMSSearchResult.h:1463
QMSBusingRouteTransitLine
公交路线信息
Definition: QMSSearchResult.h:1315
QMSReGeoCodePoi
逆地址解析POI
Definition: QMSSearchResult.h:620
QMSPoiAdInfo
行政区划信息
Definition: QMSSearchResult.h:71
QMSDistrictBaseSearchResult
行政区划检索的结果的基类,请使用子类QMSDistrictSearchResult
Definition: QMSSearchResult.h:1403
QMSRouteStep
路径规划的路线步骤
Definition: QMSSearchResult.h:988
QMSReGeoCodePoiAdInfo
POI行政区划信息
Definition: QMSSearchResult.h:593
QMSSuggestionSubPoiData
关键词提示检索子Poi数据
Definition: QMSSearchResult.h:309
QMSRoutePlanCityInfo
途径城市信息
Definition: QMSSearchResult.h:805
QMSRoutePlan
路径规划的路线方案
Definition: QMSSearchResult.h:905
QMSSuggestionResult
关键词提示检索结果
Definition: QMSSearchResult.h:362
QMSGeoCodeAdInfo
地址解析行政区划信息
Definition: QMSSearchResult.h:712
QMSTruckingRouteStep
货车路径规划的路线步骤
Definition: QMSSearchResult.h:1067
QMSReverseGeoCodeSearchResult
逆地址检索结果
Definition: QMSSearchResult.h:668
QMSDriveRestriction
限行信息
Definition: QMSSearchResult.h:817
QMSReGeoCodeAdInfo
行政区划信息
Definition: QMSSearchResult.h:445
QMSBicyclingRouteSearchResult
骑行路线规划的检索结果
Definition: QMSSearchResult.h:791
QMSBusingRouteSearchResult
公交路径规划结果
Definition: QMSSearchResult.h:1388
QMSSearchResult
检索结果
Definition: QMSSearchResult.h:38
QMSPoiSearchResult
Poi检索结果
Definition: QMSSearchResult.h:218
QMSTaxiFare
预估打车费
Definition: QMSSearchResult.h:833
QMSBusingSegmentRoutePlan
公交分段方案
Definition: QMSSearchResult.h:1229
QMSRouteWayPoint
途径点
Definition: QMSSearchResult.h:872
QMSBusingRoutePlan
公交出行方案
Definition: QMSSearchResult.h:1196
QMSReGeoCodeFormattedAddresses
优化格式后的地址描述
Definition: QMSSearchResult.h:386
QMSBusStation
上车点/下车点
Definition: QMSSearchResult.h:1288
QMSTruckingRoutePlan
货车路径规划的路线方案
Definition: QMSSearchResult.h:1113
QMSTruckingRouteSearchResult
货车路线检索结果
Definition: QMSSearchResult.h:1181
QMSPoiData
POI展示数据
Definition: QMSSearchResult.h:98
QMSTrafficCondition
路况信息
Definition: QMSSearchResult.h:845
QMSTruckingTrafficCondition
货车路线检索结果
Definition: QMSSearchResult.h:1060
QMSPoiSubData
子Poi信息
Definition: QMSSearchResult.h:161