BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

载入中...
搜索中...
未找到
BMKWeatherSearchOption.h
浏览该文件的文档.
1//
2// BMKWeatherSearchOption.h
3// BaiduMapAPI_Search
4//
5// Created by Baidu on 2020/4/30.
6// Copyright © 2020 Baidu. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <CoreLocation/CoreLocation.h>
11#import <BaiduMapAPI_Base/BMKTypes.h>
12
13NS_ASSUME_NONNULL_BEGIN
20@interface BMKWeatherSearchOption : NSObject
22@property (nonatomic, copy) NSString *districtID;
24@property (nonatomic, assign) CLLocationCoordinate2D location;
26@property (nonatomic, assign) BMKWeatherServerType serverType;
28@property (nonatomic, assign) BMKWeatherDataType dataType;
30@property (nonatomic, assign) BMKLanguageType languageType;
31@end
32
33NS_ASSUME_NONNULL_END
BMKLanguageType
BMKLanguageType
语言类型枚举
Definition BMKTypes.h:28
BMKWeatherServerType
BMKWeatherServerType
天气服务类型枚举
Definition BMKTypes.h:22
BMKWeatherDataType
BMKWeatherDataType
天气数据类型枚举
Definition BMKTypes.h:67
BMKWeatherSearchOption
Definition BMKWeatherSearchOption.h:21
BMKWeatherSearchOption::serverType
BMKWeatherServerType serverType
可选。天气服务类型，默认国内
Definition BMKWeatherSearchOption.h:26
BMKWeatherSearchOption::dataType
BMKWeatherDataType dataType
可选。请求数据类型，默认：BMKWeatherDataTypeNow
Definition BMKWeatherSearchOption.h:28
BMKWeatherSearchOption::languageType
BMKLanguageType languageType
可选。语言类型，默认中文。目前仅支持海外天气服务行政区划显示英文。
Definition BMKWeatherSearchOption.h:30
BMKWeatherSearchOption::districtID
NSString * districtID
必选。区县的行政区划编码，和location二选一
Definition BMKWeatherSearchOption.h:22
BMKWeatherSearchOption::location
CLLocationCoordinate2D location
必选。经纬度，高级字段，需要申请高级权限
Definition BMKWeatherSearchOption.h:24