BMKShareUrlSearchOption.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * BMKShareUrlSearchOption.h
  3. * BMapKit
  4. *
  5. * Copyright 2014 Baidu Inc. All rights reserved.
  6. *
  7. */
  8. #import <BaiduMapAPI_Base/BMKTypes.h>
  9. /// poi详情短串分享检索信息类
  10. @interface BMKPoiDetailShareURLOption : NSObject
  11. {
  12. NSString *_uid;
  13. }
  14. ///poi的uid
  15. @property (nonatomic, strong) NSString *uid;
  16. @end
  17. ///反geo短串分享检索信息类
  18. @interface BMKLocationShareURLOption : NSObject {
  19. NSString *_name;
  20. NSString *_snippet;
  21. CLLocationCoordinate2D _location;
  22. }
  23. ///名称
  24. @property (nonatomic, strong) NSString *name;
  25. ///通过短URL调起客户端时作为附加信息显示在名称下面
  26. @property (nonatomic, strong) NSString *snippet;
  27. ///经纬度
  28. @property (nonatomic, assign) CLLocationCoordinate2D location;
  29. @end
  30. ///路线规划短串分享
  31. typedef enum {
  32. BMK_ROUTE_PLAN_SHARE_URL_TYPE_DRIVE = 0, //驾车路线规划短串分享
  33. BMK_ROUTE_PLAN_SHARE_URL_TYPE_WALK = 1, //步行路线规划短串分享
  34. BMK_ROUTE_PLAN_SHARE_URL_TYPE_RIDE = 2, //骑行路线规划短串分享
  35. BMK_ROUTE_PLAN_SHARE_URL_TYPE_TRANSIT = 3, //公交路线规划短串分享
  36. }BMKRoutePlanShareURLType;
  37. ///路线规划短串分享检索信息类
  38. @interface BMKRoutePlanShareURLOption : NSObject
  39. ///路线规划短串分享类型
  40. @property (nonatomic, assign) BMKRoutePlanShareURLType routePlanType;
  41. ///起点,可通过关键字、坐标两种方式指定,使用关键字时必须指定from.cityID
  42. @property (nonatomic, strong) BMKPlanNode *from;
  43. ///终点,可通过关键字、坐标两种方式指定,使用关键字时必须指定to.cityID
  44. @property (nonatomic, strong) BMKPlanNode *to;
  45. ///cityID,当进行公交路线规划短串分享且起终点通过关键字指定时,必须指定
  46. @property (nonatomic, assign) NSUInteger cityID;
  47. ///公交路线规划短串分享时使用,分享的是第几条线路
  48. @property (nonatomic, assign) NSUInteger routeIndex;
  49. @end