9 #import <CoreGraphics/CoreGraphics.h> 10 #import <CoreLocation/CoreLocation.h> 11 #import <UIKit/UIKit.h> 22 BMKWeatherServerTypeDefault = 0,
23 BMKLanguageServerTypeAbroad
24 } BMKWeatherServerType;
28 BMKLanguageTypeChinese = 0,
29 BMKLanguageTypeEnglish
34 BMKWeatherDataTypeNow = 0,
35 BMKWeatherDataTypeForecasts,
36 BMKWeatherDataTypeForecastsForHour,
37 BMKWeatherDataTypeLifeIndex,
38 BMKWeatherDataTypeAlert,
50 typedef NS_ENUM(NSUInteger, BMK_COORD_TYPE) {
51 BMK_COORDTYPE_GPS = 0,
63 typedef NS_ENUM(NSUInteger, BMKMapType) {
65 BMKMapTypeStandard = 1,
66 BMKMapTypeSatellite = 2,
74 BMKErrorRouteAddr = 4,
75 BMKErrorResultNotFound = 100,
76 BMKErrorLocationFailed = 200,
77 BMKErrorPermissionCheckFailure = 300,
82 E_PERMISSIONCHECK_CONNECT_ERROR = -300,
83 E_PERMISSIONCHECK_DATA_ERROR = -200,
84 E_PERMISSIONCHECK_OK = 0,
85 E_PERMISSIONCHECK_KEY_ERROR = 101,
86 E_PERMISSIONCHECK_MCODE_ERROR = 102,
87 E_PERMISSIONCHECK_UID_KEY_ERROR = 200,
88 E_PERMISSIONCHECK_KEY_FORBIDEN = 201,
89 E_PERMISSIONCHECK_KEY_DENY_BY_SERVER = 202,
90 E_PERMISSIONCHECK_USER_DENY_BY_SERVER = 252,
95 }BMKPermissionCheckResultCode;
99 BMK_SEARCH_NO_ERROR = 0,
100 BMK_SEARCH_AMBIGUOUS_KEYWORD,
101 BMK_SEARCH_AMBIGUOUS_ROURE_ADDR,
102 BMK_SEARCH_NOT_SUPPORT_BUS,
103 BMK_SEARCH_NOT_SUPPORT_BUS_2CITY,
104 BMK_SEARCH_RESULT_NOT_FOUND,
105 BMK_SEARCH_ST_EN_TOO_NEAR,
106 BMK_SEARCH_KEY_ERROR,
107 BMK_SEARCH_NETWOKR_ERROR,
108 BMK_SEARCH_NETWOKR_TIMEOUT,
109 BMK_SEARCH_PERMISSION_UNFINISHED,
110 BMK_SEARCH_INDOOR_ID_ERROR,
111 BMK_SEARCH_FLOOR_ERROR,
112 BMK_SEARCH_INDOOR_ROUTE_NO_IN_BUILDING,
113 BMK_SEARCH_INDOOR_ROUTE_NO_IN_SAME_BUILDING,
114 BMK_SEARCH_PARAMETER_ERROR,
115 BMK_SEARCH_SERVER_ERROR,
116 BMK_SEARCH_SERVER_DISTRICT_ID_ERROR,
117 BMK_SEARCH_SERVER_NO_PERMISSIONS,
122 BMK_OPEN_NO_ERROR = 0,
124 BMK_OPEN_OPTION_NULL,
125 BMK_OPEN_NOT_SUPPORT,
126 BMK_OPEN_POI_DETAIL_UID_NULL,
127 BMK_OPEN_POI_NEARBY_KEYWORD_NULL,
128 BMK_OPEN_ROUTE_START_ERROR,
129 BMK_OPEN_ROUTE_END_ERROR,
130 BMK_OPEN_PANORAMA_UID_ERROR,
131 BMK_OPEN_PANORAMA_ABSENT,
132 BMK_OPEN_PERMISSION_UNFINISHED,
134 BMK_OPEN_NETWOKR_ERROR,
139 CLLocationDegrees latitudeDelta;
150 UIKIT_STATIC_INLINE
BMKCoordinateSpan BMKCoordinateSpanMake(CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta) {
152 span.latitudeDelta = latitudeDelta;
159 CLLocationCoordinate2D northEast;
166 CLLocationCoordinate2D center;
178 region.center = centerCoordinate;
202 UIKIT_STATIC_INLINE
BMKMapPoint BMKMapPointMake(
double x,
double y) {
219 UIKIT_STATIC_INLINE
BMKMapSize BMKMapSizeMake(
double width,
double height) {
238 UIKIT_STATIC_INLINE
BMKMapRect BMKMapRectMake(
double x,
double y,
double width,
double height) {
239 return (
BMKMapRect){ BMKMapPointMake(x, y), BMKMapSizeMake(width, height)};
248 UIKIT_STATIC_INLINE BOOL BMKMapRectIsNull(
BMKMapRect rect) {
249 return isinf(rect.origin.x) || isinf(rect.origin.
y);
258 UIKIT_STATIC_INLINE
double BMKMapRectGetMinX(
BMKMapRect rect) {
259 return rect.origin.x;
267 UIKIT_STATIC_INLINE
double BMKMapRectGetMinY(
BMKMapRect rect) {
268 return rect.origin.
y;
276 UIKIT_STATIC_INLINE
double BMKMapRectGetMidX(
BMKMapRect rect) {
277 return rect.origin.x + rect.
size.width / 2.0;
285 UIKIT_STATIC_INLINE
double BMKMapRectGetMidY(
BMKMapRect rect) {
294 UIKIT_STATIC_INLINE
double BMKMapRectGetMaxX(
BMKMapRect rect) {
295 return rect.origin.x + rect.
size.width;
303 UIKIT_STATIC_INLINE
double BMKMapRectGetMaxY(
BMKMapRect rect) {
308 typedef CGFloat BMKZoomScale;
311 UIKIT_EXTERN
const BMKMapSize BMKMapSizeWorld;
313 UIKIT_EXTERN
const BMKMapRect BMKMapRectWorld;
322 @property (nonatomic, assign) NSInteger
cityID;
324 @property (nonatomic, copy) NSString *
name;
326 @property (nonatomic, assign) CLLocationCoordinate2D
pt;
332 @property (nonatomic, copy) NSString *floor;
334 @property (nonatomic, assign) CLLocationCoordinate2D
pt;
341 @property (nonatomic, copy) NSString *country;
343 @property (nonatomic, copy) NSString *province;
345 @property (nonatomic, copy) NSString *city;
347 @property (nonatomic, copy) NSString *district;
349 @property (nonatomic, copy) NSString *town;
351 @property (nonatomic, copy) NSString *streetName;
353 @property (nonatomic, copy) NSString *streetNumber;
355 @property (nonatomic, copy) NSString *adCode;
357 @property (nonatomic, copy) NSString *countryCode;
359 @property (nonatomic, copy) NSString *direction;
361 @property (nonatomic, copy) NSString *distance;
double y
横坐标
Definition: BMKTypes.h:192
BMKCoordinateSpan span
中心点经纬度坐标
Definition: BMKTypes.h:167
矩形大小,用直角地理坐标表示
Definition: BMKTypes.h:207
线路检索节点信息,一个路线检索节点可以通过经纬度坐标或城市名加地名确定
Definition: BMKTypes.h:318
表示一个经纬度坐标点
Definition: BMKTypes.h:184
矩形,用直角地理坐标表示
Definition: BMKTypes.h:224
表示一个经纬度区域
Definition: BMKTypes.h:158
CLLocationCoordinate2D pt
节点坐标
Definition: BMKTypes.h:326
室内路线检索节点信息
Definition: BMKTypes.h:330
NSInteger cityID
节点所在城市ID
Definition: BMKTypes.h:322
NSString * name
节点名称
Definition: BMKTypes.h:324
NSString * cityName
节点所在城市
Definition: BMKTypes.h:320
CLLocationDegrees longitudeDelta
纬度范围
Definition: BMKTypes.h:140
double height
宽度
Definition: BMKTypes.h:209
此类表示地址结果的层次化信息
Definition: BMKTypes.h:339
BMKMapSize size
屏幕左上点对应的直角地理坐标
Definition: BMKTypes.h:226
int longitudeE6
经度,乘以1e6之后的值
Definition: BMKTypes.h:186
int latitudeE6
纬度,乘以1e6之后的值
Definition: BMKTypes.h:185
表示一个经纬度范围
Definition: BMKTypes.h:138
CLLocationCoordinate2D southWest
东北角点经纬度坐标
Definition: BMKTypes.h:160
表示一个经纬度区域
Definition: BMKTypes.h:165
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:190