BaiduMap_IOSSDK_v7.0.0_Docs 7.0.0

BMKWeatherSearchResult.h
浏览该文件的文档.
1 //
2 // BMKWeatherSearchResult.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
11 NS_ASSUME_NONNULL_BEGIN
12 @class BMKWeatherSearchNow, BMKWeatherSearchLocation, BMKWeatherSearchForecastForHours, BMKWeatherSearchForecasts, BMKWeatherSearchIndexes, BMKWeatherSearchAlerts;
13
15 @interface BMKWeatherSearchResult : NSObject
17 @property (nonatomic, strong) BMKWeatherSearchNow *realTimeWeather;
19 @property (nonatomic, strong) BMKWeatherSearchLocation *location;
21 @property (nonatomic, strong) NSArray <BMKWeatherSearchForecasts *> *forecasts;
23 @property (nonatomic, strong) NSArray <BMKWeatherSearchForecastForHours *> * forecastHours;
25 @property (nonatomic, strong) NSArray <BMKWeatherSearchIndexes *> * lifeIndexes;
27 @property (nonatomic, strong) NSArray <BMKWeatherSearchAlerts *> * weatherAlerts;
28
29 @end
30
31 @interface BMKWeatherSearchNow : NSObject
33 @property (nonatomic, assign) NSInteger relativeHumidity;
35 @property (nonatomic, assign) NSInteger sensoryTemp;
37 @property (nonatomic, copy) NSString *phenomenon;
39 @property (nonatomic, copy) NSString *windDirection;
41 @property (nonatomic, copy) NSString *updateTime;
43 @property (nonatomic, assign) NSInteger temperature;
45 @property (nonatomic, copy) NSString *windPower;
47 @property (nonatomic, assign) NSInteger clouds;
49 @property (nonatomic, assign) float hourlyPrecipitation;
51 @property (nonatomic, assign) NSInteger visibility;
53 @property (nonatomic, assign) NSInteger O3;
55 @property (nonatomic, assign) NSInteger PM2_5;
57 @property (nonatomic, assign) NSInteger NO2;
59 @property (nonatomic, assign) NSInteger SO2;
61 @property (nonatomic, assign) NSInteger airQualityIndex;
63 @property (nonatomic, assign) NSInteger PM10;
65 @property (nonatomic, assign) float CO;
66
67 @end
68
69 @interface BMKWeatherSearchLocation : NSObject
71 @property (nonatomic, copy) NSString *country;
73 @property (nonatomic, copy) NSString *province;
75 @property (nonatomic, copy) NSString *city;
77 @property (nonatomic, copy) NSString *districtName;
79 @property (nonatomic, copy) NSString *districtID;
80
81 @end
82
83 @interface BMKWeatherSearchForecasts : NSObject
85 @property (nonatomic, copy) NSString *date;
87 @property (nonatomic, copy) NSString *week;
89 @property (nonatomic, assign) NSInteger lowestTemp;
91 @property (nonatomic, assign) NSInteger highestTemp;
93 @property (nonatomic, copy) NSString *windPowerDay;
95 @property (nonatomic, copy) NSString *windPowerNight;
97 @property (nonatomic, copy) NSString *windDirectionDay;
99 @property (nonatomic, copy) NSString *windDirectionrNight;
101 @property (nonatomic, copy) NSString *phenomenonDay;
103 @property (nonatomic, copy) NSString *phenomenonNight;
105 @property (nonatomic, assign) NSInteger airQualityIndex;
106
107 @end
108
109 @interface BMKWeatherSearchIndexes : NSObject
111 @property (nonatomic, copy) NSString *name;
113 @property (nonatomic, copy) NSString *brief;
115 @property (nonatomic, copy) NSString *detail;
116
117 @end
118
119 @interface BMKWeatherSearchForecastForHours : NSObject
121 @property (nonatomic, assign) NSInteger relativeHumidity;
123 @property (nonatomic, copy) NSString *dataTime;
125 @property (nonatomic, copy) NSString *windDirection;
127 @property (nonatomic, copy) NSString *windPower;
129 @property (nonatomic, assign) NSInteger temperature;
131 @property (nonatomic, assign) NSInteger clouds;
133 @property (nonatomic, copy) NSString *phenomenon;
135 @property (nonatomic, assign) NSInteger hourlyPrecipitation;
136
137 @end
138
139 @interface BMKWeatherSearchAlerts : NSObject
141 @property (nonatomic, copy) NSString *type;
143 @property (nonatomic, copy) NSString *level;
145 @property (nonatomic, copy) NSString *title;
147 @property (nonatomic, copy) NSString *desc;
148
149 @end
150
151
152 NS_ASSUME_NONNULL_END
BMKWeatherSearchResult::lifeIndexes
NSArray< BMKWeatherSearchIndexes * > * lifeIndexes
生活指数数据，高级字段
Definition: BMKWeatherSearchResult.h:25
BMKWeatherSearchResult::forecastHours
NSArray< BMKWeatherSearchForecastForHours * > * forecastHours
未来24小时逐小时预报，高级字段
Definition: BMKWeatherSearchResult.h:23
BMKWeatherSearchResult::realTimeWeather
BMKWeatherSearchNow * realTimeWeather
天气实况数据
Definition: BMKWeatherSearchResult.h:17
BMKWeatherSearchAlerts
Definition: BMKWeatherSearchResult.h:140
BMKWeatherSearchLocation
Definition: BMKWeatherSearchResult.h:70
BMKWeatherSearchIndexes
Definition: BMKWeatherSearchResult.h:110
BMKWeatherSearchResult
注意：天气服务高级字段，需要申请高级权限 http://lbsyun.baidu.com/apiconsole/fankui#?typeOne=产品需求&typeTwo=高级服务
Definition: BMKWeatherSearchResult.h:16
BMKWeatherSearchForecastForHours
Definition: BMKWeatherSearchResult.h:120
BMKWeatherSearchResult::forecasts
NSArray< BMKWeatherSearchForecasts * > * forecasts
未来5天预报数据
Definition: BMKWeatherSearchResult.h:21
BMKWeatherSearchForecasts
Definition: BMKWeatherSearchResult.h:84
BMKWeatherSearchNow
Definition: BMKWeatherSearchResult.h:32
BMKWeatherSearchResult::location
BMKWeatherSearchLocation * location
地理位置信息
Definition: BMKWeatherSearchResult.h:19
BMKWeatherSearchResult::weatherAlerts
NSArray< BMKWeatherSearchAlerts * > * weatherAlerts
气象预警数据，高级字段
Definition: BMKWeatherSearchResult.h:27