TencentMapSDK_iOS_3D_v6.7.0

QMSSearchOption.h
1 //
2 // QMSSearchOption.h
3 // QMapSearchKit
4 //
5 // Created by xfang on 14/11/5.
6 // Copyright (c) 2014年 tencent. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <CoreLocation/CoreLocation.h>
11 #import <UIKit/UIKit.h>
12 #import "QMSSearchOptionTypes.h"
16 @interface QMSSearchOption : NSObject <NSCopying, NSCoding>
17
21 @property (nonatomic, copy) NSString *added_fields;
22
27 @property (nonatomic, copy) NSDictionary <NSString *, NSString *> *extraParam;
28
29 @end
30
31 #pragma mark -
32
33 @interface QMSPoiSearchOption : QMSSearchOption
34
38 @property (nonatomic, assign) NSUInteger page_size;
39
43 @property (nonatomic, assign) NSUInteger page_index;
44
48 @property (nonatomic, copy) NSString *keyword;
49
60 @property (nonatomic, copy) NSString *boundary;
61
68 - (void)setBoundaryByRegionWithCityName: (NSString *)cityName autoExtend:(BOOL)isAutoEntend;
69
77 - (void)setBoundaryByRegionWithCityName: (NSString *)cityName autoExtend:(BOOL)isAutoEntend center:(CLLocationCoordinate2D)coordinate;
78
86 - (void)setBoundaryByNearbyWithCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate radius:(NSUInteger)radius autoExtend:(BOOL)isAutoEntend;
87
94 - (void)setBoundaryByRectangleWithleftBottomCoordinate:(CLLocationCoordinate2D)leftBottomCoordinate rightTopCoordinate:(CLLocationCoordinate2D)rightTopCoordinate;
95
109 @property (nonatomic, copy) NSString *filter;
110
116 - (void)setFilterByCategories:(NSArray<NSString *> *)categories;
117
123 @property (nonatomic, copy) NSString *orderby;
124
133 @property (nonatomic, copy) NSNumber *get_subpois;
134
141 @property (nonatomic, copy) NSNumber *sub_title_format;
142
143 @end
144
145
149 @interface QMSPoiExploreSearchOption : QMSSearchOption
150
154 @property (nonatomic, assign) NSUInteger page_size;
155
159 @property (nonatomic, assign) NSUInteger page_index;
160
161
168 @property (nonatomic, copy) NSString *boundary;
169
177 - (void)setBoundaryByNearbyWithCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate radius:(NSUInteger)radius autoExtend:(BOOL)isAutoEntend;
178
184 @property (nonatomic, assign) int policy;
185
199 @property (nonatomic, copy) NSString *filter;
200
206 - (void)setFilterByCategories:(NSArray<NSString *> *)categories;
207
213 @property (nonatomic, copy) NSString *orderby;
214
218 @property (nonatomic, copy) NSString *address_format;
219
220 @end
221
225 @interface QMSPoiDetailSearchOption : QMSSearchOption
226
231 @property (nonatomic, copy) NSString *ID;
232
233 @end
234
235 #pragma mark -
236
237 @interface QMSSuggestionSearchOption : QMSSearchOption
238
242 @property (nonatomic, copy) NSString *keyword;
243
247 @property (nonatomic, copy) NSString *region;
248
262 @property (nonatomic, copy) NSString *filter;
263
269 - (void)setFilterByCategories:(NSArray<NSString *> *)categories;
270
274 @property (nonatomic, copy) NSNumber *region_fix;
275
279 @property (nonatomic, copy) NSString *location;
280
286 - (void)setLocationWithCoordinate:(CLLocationCoordinate2D)coordinate;
287
288
296 @property (nonatomic, copy) NSNumber *get_subpois;
297
310 @property (nonatomic, copy) NSNumber *policy;
311
315 @property (nonatomic, copy) NSString *address_format;
316
320 @property (nonatomic, copy) NSNumber *page_index;
321
325 @property (nonatomic, copy) NSNumber *page_size;
326
327 @end
328
329 #pragma mark -
330
331 @interface QMSReverseGeoCodeSearchOption : QMSSearchOption
332
337 @property (nonatomic, copy) NSString *location;
338
344 - (void)setLocationWithCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate;
345
375 @property (nonatomic, copy) NSString *poi_options;
376
380 @property (nonatomic, assign) BOOL get_poi;
381
387 @property (nonatomic, assign) QMSStreetNumberFormat street_number_format;
388
389 @end
390
391 #pragma mark -
392
393 @interface QMSGeoCodeSearchOption : QMSSearchOption
394
398 @property (nonatomic, copy) NSString *address;
399
403 @property (nonatomic, copy) NSString *region;
404
405 @end
406
407 #pragma mark -
408
412 @interface QMSWalkingRouteSearchOption : QMSSearchOption
413
418 @property (nonatomic, copy) NSString *from;
419
425 - (void)setFromCoordinate:(CLLocationCoordinate2D)coordinate;
426
432 @property (nonatomic, copy) NSString *from_poi;
433
438 @property (nonatomic, copy) NSString *to;
439
445 - (void)setToCoordinate:(CLLocationCoordinate2D)coordinate;
446
453 @property (nonatomic, copy) NSString *to_poi;
454
455 @end
456
457 #pragma mark -
458
462 @interface QMSBicyclingRouteSearchOption : QMSSearchOption
463
468 @property (nonatomic, copy) NSString *from;
469
475 - (void)setFromCoordinate:(CLLocationCoordinate2D)coordinate;
476
482 @property (nonatomic, copy) NSString *from_poi;
483
488 @property (nonatomic, copy) NSString *to;
489
495 - (void)setToCoordinate:(CLLocationCoordinate2D)coordinate;
496
503 @property (nonatomic, copy) NSString *to_poi;
504
505 @end
506
507 #pragma mark -
508
512 @interface QMSTrackPoint : QMSSearchOption
513
517 @property (nonatomic, assign) CLLocationCoordinate2D coordinate;
518
522 @property (nonatomic, assign) double speed;
523
527 @property (nonatomic, assign) double accuracy;
528
532 @property (nonatomic, assign) double course;
533
537 @property (nonatomic, assign) double heading;
538
542 @property (nonatomic, assign) double time;
543
544 @end
545
549 @interface QMSUniveralPolygon : NSObject
550
554 @property (nonatomic, assign) CLLocationCoordinate2D *coordinates;
555
559 @property (nonatomic, assign) NSUInteger count;
560
561 @end
562
566 typedef enum
567 {
568 QMSDrivingRoutePolicyTypeLeastTime = 0, //省时
569 QMSDrivingRoutePolicyTypeLeastFee = 1, //省钱
570 QMSDrivingRoutePolicyTypeLeastDistance = 2, //距离最短
571 QMSDrivingRoutePolicyTypeRealTraffic = 3, //综合最优
572 } QMSDrivingRoutePolicyType;
573
574 // 策略
575 typedef NS_ENUM(NSInteger, QMSDrivingRoutePolicyTypeNew) {
576 // 参考实时路况，时间最短. 默认值.
577 QMSDrivingRoutePolicyTypeNewLeastTime,
578 // 网约车场景 - 接乘客
579 QMSDrivingRoutePolicyTypeNewPickup,
580 // 网约车场景 – 送乘客
581 QMSDrivingRoutePolicyTypeNewTrip,
582 };
583
584 // 偏好参数. 多个偏好可并用。
585 typedef NS_OPTIONS(NSUInteger, QMSDrivingRoutePerference) {
586 // 无偏好 （默认）
587 QMSDrivingRoutePerferenceNone = 0,
588 // 参考实时路况
589 QMSDrivingRoutePerferenceRealTraffic = 1 << 0,
590 // 少收费
591 QMSDrivingRoutePerferenceLeastFee = 1 << 1,
592 // 高速优先
593 QMSDrivingRoutePerferenceHighwayFirst = 1 << 2,
594 // 不走高速
595 QMSDrivingRoutePerferenceAvoidHighway = 1 << 3,
596 // 大路优先
597 QMSDrivingRoutePerferenceHighroadFirst = 1 << 4,
598 // 该策略会通过终点坐标查找所在地点（如小区/大厦等），并使用地点出入口做为目的地，使路径更为合理
599 QMSDrivingRoutePerferenceNavPointFirst = 1 << 5
600 };
601
605 @interface QMSDrivingRouteSearchOption : QMSSearchOption
606
611 @property (nonatomic, copy) NSString *from;
612
618 - (void)setFromCoordinate:(CLLocationCoordinate2D)coordinate;
619
625 @property (nonatomic, copy) NSString *from_poi;
626
633 @property (nonatomic, copy) NSString *from_track;
634
658 - (void)setTrackPoints:(NSArray<QMSTrackPoint *> *)points;
659
664 @property (nonatomic, copy) NSString *to;
665
671 - (void)setToCoordinate:(CLLocationCoordinate2D)coordinate;
672
679 @property (nonatomic, copy) NSString *to_poi;
680
705 @property (nonatomic, copy) NSString *policy;
706
712 - (void)setPolicyWithType:(QMSDrivingRoutePolicyType)type __attribute__ ((deprecated("use @property (nonatomic, assign) QMSDrivingRoutePolicyTypeNew policyType; and @property (nonatomic, assign) QMSDrivingRoutePerference perference; instead")));
713
722 @property (nonatomic, assign) QMSDrivingRoutePolicyTypeNew policyType;
723
741 @property (nonatomic, assign) QMSDrivingRoutePerference perference;
742
747 @property (nonatomic, assign) QMSRouteTagType tag_mode;
748
752 @property (nonatomic, copy) NSString *waypoints;
753
760 - (void)setWayPointsWithCoordinates:(CLLocationCoordinate2D *)coordinates count:(NSUInteger)count;
761
767 @property (nonatomic, copy) NSString *avoid_polygons;
768
774 - (void)setAvoidPolygon:(NSArray<QMSUniveralPolygon *> *)avoidPolygons;
775
781 @property (nonatomic, copy) NSNumber *heading;
782
786 @property (nonatomic, copy) NSNumber *speed;
787
791 @property (nonatomic, copy) NSNumber *accuracy;
792
796 @property (nonatomic, copy) NSString *plate_number;
797
801 @property (nonatomic, assign) int get_mp;
802
806 @property (nonatomic, assign) int no_step;
807
811 @property (nonatomic, assign) int cartype;
812
816 @property (nonatomic, assign) int get_speed;
817
821 @property (nonatomic, copy) NSDate *departure_time;
822
823 @end
824
825 #pragma mark - TruckingRoute
826
827 @interface QMSTruckingRouteSearchOption : QMSSearchOption
828
833 @property (nonatomic, copy) NSString *from;
834
840 - (void)setFromCoordinate:(CLLocationCoordinate2D)coordinate;
841
847 @property (nonatomic, copy) NSString *from_poi;
848
853 @property (nonatomic, copy) NSString *to;
854
860 - (void)setToCoordinate:(CLLocationCoordinate2D)coordinate;
861
868 @property (nonatomic, copy) NSString *to_poi;
869
877 @property (nonatomic) NSInteger size;
878
882 @property (nonatomic) float length;
883
887 @property (nonatomic) float height;
888
892 @property (nonatomic) float width;
893
897 @property (nonatomic) float weight;
898
902 @property (nonatomic) float axle_weight;
903
907 @property (nonatomic) float axle_count;
908
912 @property (nonatomic) NSInteger is_trailer;
913
917 @property (nonatomic, copy) NSString *waypoints;
918
925 - (void)setWayPointsWithCoordinates:(CLLocationCoordinate2D *)coordinates count:(NSUInteger)count;
926
940 @property (nonatomic) NSInteger policy;
941
945 @property (nonatomic, copy) NSString *plate_number;
946
955 @property (nonatomic) NSInteger plate_color;
956
962 @property (nonatomic) NSInteger get_speed;
963
969 @property (nonatomic) NSInteger get_mp;
970
976 @property (nonatomic) NSInteger no_step;
977
983 @property (nonatomic) NSInteger no_polyline;
984
988 @property (nonatomic,assign) CGFloat load;
989
993 @property (nonatomic, assign) QMSTruckTrailerType trailer_type;
994
998 @property (nonatomic, assign) QMSTruckGoodsType goods_type;
999
1003 @property (nonatomic, assign) QMSVehicleEnergyType energy_type;
1004
1008 @property (nonatomic, assign) QMSVehicleGasEmisStandard gas_emisstand;
1009
1013 @property (nonatomic, assign) QMSVehiclePassType pass_type;
1014
1019 @property (nonatomic, assign) QMSRouteTagType tag_mode;
1020
1021 @end
1022
1023 #pragma mark - BusingRoute
1024
1028 typedef enum
1029 {
1030 QMSBusingRoutePolicyTypeLeastTime = 0, //省时
1031 QMSBusingRoutePolicyTypeLeastTransfer = 1, //少换乘
1032 QMSBusingRoutePolicyTypeLeastWalking = 2, //少步行
1033 } QMSBusingRoutePolicyType;
1034
1038 @interface QMSBusingRouteSearchOption : QMSSearchOption
1039
1044 @property (nonatomic, copy) NSString *from;
1045
1051 - (void)setFromCoordinate:(CLLocationCoordinate2D)coordinate;
1052
1057 @property (nonatomic, copy) NSString *to;
1058
1064 - (void)setToCoordinate:(CLLocationCoordinate2D)coordinate;
1065
1078 @property (nonatomic, copy) NSString *policy;
1079
1085 - (void)setPolicyWithType:(QMSBusingRoutePolicyType)type;
1086
1092 @property (nonatomic, copy) NSDate *departure_time;
1093
1094 @end
1095
1096 #pragma mark - QMSDistrictListSearchOption
1097
1101 typedef enum
1102 {
1103 QMSDistrictPolygonWithoutResult = 0, /// 默认，不返回轮廓
1104 QMSDistrictPolygonWithSeaArea = 1, /// 包含海域，3公里抽稀粒度
1105 QMSDistrictPolygonWithLandOnly = 2 /// 纯陆地行政区划，可通过max_offset设置返回轮廓的抽稀级别
1106
1107 }QMSDistrictPolygonOption;
1108
1112 @interface QMSDistrictBaseSearchOption : QMSSearchOption
1113
1117 @property (nonatomic, assign) QMSDistrictPolygonOption get_polygon;
1118
1127 @property (nonatomic, assign) int max_offset;
1128
1129 @end
1130
1134 @interface QMSDistrictListSearchOption : QMSDistrictBaseSearchOption
1135
1136 @end
1137
1138 #pragma mark - QMSDistrictChildrenSearchOption
1139
1143 @interface QMSDistrictChildrenSearchOption : QMSDistrictBaseSearchOption
1144
1148 @property (nonatomic, copy) NSString *ID;
1149
1150 @end
1151
1152 #pragma mark - QMSDistrictSearchSearchOption
1153
1154 @interface QMSDistrictSearchSearchOption : QMSDistrictBaseSearchOption
1155
1162 @property (nonatomic, copy) NSString *keyword;
1163
1164 @end
1165
QMSSearchOption
检索参数的基类
Definition: QMSSearchOption.h:16
QMSSuggestionSearchOption
Definition: QMSSearchOption.h:238
QMSGeoCodeSearchOption
Definition: QMSSearchOption.h:394
QMSWalkingRouteSearchOption
步行路线规划的检索参数
Definition: QMSSearchOption.h:413
QMSPoiSearchOption
Definition: QMSSearchOption.h:34
QMSTrackPoint
轨迹点
Definition: QMSSearchOption.h:513
QMSSearchOption::added_fields
NSString * added_fields
设置额外字段, 每个字段使用,分隔, 例如 added_fields=cities,tolldistance
Definition: QMSSearchOption.h:21
QMSReverseGeoCodeSearchOption
Definition: QMSSearchOption.h:332
QMSUniveralPolygon
检索通用多边形点类
Definition: QMSSearchOption.h:550
QMSSearchOption::extraParam
NSDictionary< NSString *, NSString * > * extraParam
设置请求补充参数, 例如："get_subpois" : @"1"}
Definition: QMSSearchOption.h:27
QMSDrivingRouteSearchOption
驾车路线规划的检索参数
Definition: QMSSearchOption.h:606
QMSPoiExploreSearchOption
周边推荐
Definition: QMSSearchOption.h:150
QMSBicyclingRouteSearchOption
骑行路线规划的检索参数
Definition: QMSSearchOption.h:463
QMSPoiDetailSearchOption
ID查询（detail)
Definition: QMSSearchOption.h:226