Grid Weather Daily Forecast

Platform: API iOS Android

Weather forecast data based on numerical models, to provide daily weather forecasts at specified coordinates around the world, with a spatial resolution of 3-5 kilometers.

Hint: The grid weather data is based on Numerical Weather Prediction (NWP) models, and it is not suitable for comparison with observation station data. For station-based city weather data, please refer to the City Weather API. Grid weather uses UTC+0 as the time zone.

Interface code Interface Class
grid3d 3 Days Forecast by Grid GridDailyResponse
grid7d 7 Days Forecast by Grid GridDailyResponse

Parameters

GridWeatherParameter

Name Type Required Example
longitude double true 116.41
latitude double true 39.92
lang Lang false ZH_HANS
unit Unit false METRIC

Sample code

/*
* 3 Days Forecast by Grid
*/
public void grid3d(GridWeatherParameter parameter, Callback<GridDailyResponse> callback);

/*
* 7 Days Forecast by Grid
*/
public void grid7d(GridWeatherParameter parameter, Callback<GridDailyResponse> callback);

Response

GridDailyResponse

  • code See Status Code
  • updateTime API last update time
  • fxLink Responsive web page of this data, for embedded in website or APP
  • daily.fxDate Forecast date
  • daily.tempMax The highest temperature of the day
  • daily.tempMin The lowest temperature of the day
  • daily.iconDay Icon code for daytime weather conditions. See also QWeather Icons
  • daily.textDay Weather conditions for daytime
  • daily.iconNight Icon code for night weather conditions. See also QWeather Icons
  • daily.textNight Weather conditions for night
  • daily.wind360Day Daytime wind direction in azimuth degree
  • daily.windDirDay Daytime wind direction
  • daily.windScaleDay Daytime wind scale
  • daily.windSpeedDay Daytime wind speed, KM/H
  • daily.wind360Night Nightly wind direction in azimuth degree
  • daily.windDirNight Nightly wind direction
  • daily.windScaleNight Nightly wind scale
  • daily.windSpeedNight Nightly wind speed, KM/H
  • daily.precip Estimated total precipitation for the day
  • daily.humidity Relative humidity in percent
  • daily.pressure Atmospheric pressure, hPa
  • refer.sources Data source and other statements, may be null
  • refer.license Data license, may be null