Weather Indices Forecast

Platform: API iOS Android

Get weather indices forecast data for cities in China and around the world.

  • Weather Indices in China: Comfort Indices, Car Wash Indices, Dressing Indices, Cold Indices, Sports Indices, Travel Indices, UV Indices, Air Pollution Indices, Air Conditioning Indices, Allergy Indices, Sunglasses Indices, Makeup Indices, Sunshine Indices, Traffic Indices, Fishing Indices, Sun Protection Indices
  • Weather Indices worldwide: Sports Indices, Car Wash Indices, UV Indices, Fishing Indices
Interface Code Interface Class
getIndices1D 1 day Weather Indices IndicesBean
getIndices3D 3 days Weather Indices IndicesBean

Parameters

If no optional parameters are set, the default value will be used.

  • location(required)The location to be queried, support LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI. Example: location=101010100 or location=116.41,39.92
  • IndicesType(required)Weather indices type, including car wash index, clothing index, fishing index, etc. You can get multiple types of weather indices at one time, add multiple types to the same array. All indices type see Indices Info.

Sample Code

/**
 * Get 1-day weather indices data
 */
QWeather.get1DIndices(Context context, String location, Lang lang, List<IndicesType> types, QWeather.OnResultIndicesListener listener);

/**
 * Get 3-day weather indices data
 */
QWeather.get3DIndices(Context context, String location, Lang lang, List<IndicesType> types, QWeather.OnResultIndicesListener listener);

Properties

Properties of IndicesBean

Property Description Example
getCode See Status Code 200
getDailyList Daily weather indices List<DailyBean>
getRefer Reference data, includes data source, statements and license Refer
getBasic Basic Information Basic

Refer

Property Description Example
getSourcesList Data source and other statements QWeather
getLicenseList Data license QWeather Developers License

Basic

Property Description Example
getUpdateTime Last updated time 2017-10-25T04:34+08:00
getFxLink Responsive web page of this location, easy to embed in your website or APP https://www.qweather.com/indices/beijing-101010100.html

DailyBean Daily Life Index

Properties Description
getDate Forecast date
getLevel Weather indices Level
getCategory Weather indices category name
getName Weather indices type name
getType Weather indices type
getText Detailed description of weather indices

Index type and level

See Indices Info.