Storm Forecast
Storm Forecast provides tropical cyclones information for a specific tropical cyclone, the data including forecast tropical cyclones location, level, pressure, wind and etc.
Note: For inactive storms, the returned data is NULL, please get the storms status by Storm List first.
Interface code | Interface | Class |
---|---|---|
tropicalStormForecast | Storm forecast data | StormForecastResponse |
Parameters
StormParameter
-
stormid
(required)The storm ID that needs to be queried, StormID can be obtained by Storm List, e.g.,stormid=NP2018
Sample code
Swift
Task{
do {
let parameter = StormParameter(stormid: "NP_2421")
let response = try await QWeather.instance
.tropicalStormForecast(parameter)
print(response)
} catch QWeatherError.errorResponse(let error) {
print(error)
} catch {
print(error)
}
}
Objective-C
StormParameter *parameter = [StormParameter instanceWithStormid:@"NP_2421"];
[QWeatherObjc tropicalStormForecast:parameter completionHandler:^(StormForecastResponse * _Nullable response, NSError * _Nullable error) {
if (response) {
NSLog(@"%@", response.description);
}
if (error) {
NSLog(@"%@", error.localizedDescription);
}
}];
Response
StormForecastResponse
-
code
See Status Code -
updateTime
API last update time -
fxLink
Responsive web page of this data, for embedded in website or APP -
forecast.fxTime
Storm forecast time -
forecast.lat
Storm latitude -
forecast.lon
Storm longitude -
forecast.type
Storm type -
forecast.pressure
Center pressure of the storm -
forecast.windSpeed
Maximum wind speed near the strom -
forecast.moveSpeed
Storm moving speed -
forecast.moveDir
Storm moving direction -
forecast.move360
Storm movement direction in azimuth degre -
refer.sources
Data source and other statements, may be null -
refer.license
Data license, may be null
Typhoon level
GBT 19201-2006
Tropical cyclone level | Maximum average wind speed near the bottom center (m/s) | Maximum wind near the bottom center (level) |
---|---|---|
Tropical pressure (TD) | 10.8-17.1 | 6-7 |
Tropical Storm (TS) | 17.2-24.4 | 8-9 |
Severe Tropical Storm (STS) | 24.5-32.6 | 10-11 |
Typhoon (TY) | 32.7-41.4 | 12-13 |
Severe Typhoon (STY) | 41.5-50.9 | 14-15 |
Super Typhoon (SuperTY) | ≥51.0 | 16 or above |