Weather forecast Web Service

Source: Internet
Author: User

Guidance:
Webxml.com.cnWeather forecast web service,Data SourceChina Meteorological AdministrationHttp://www.cma.gov.cn/, data is automatically updated every hours. Including weather forecast data for over 340 major Chinese cities and over 60 major foreign cities within three days.
This weather forecast web services should not be used for any commercial purposes. If you need it, please contact us and welcome technical exchanges. QQ: 8698053
  Use this site web service please note or link this site: http://www.webxml.com.cn/Thank you for your support!
Notice: Weather Forecast web services such as the original use of address http://www.onhap.com/WebServices/WeatherWebService.asmx, please change to the current use of the service address http://www.webxml.com.cn/WebServices/WeatherWebService.asmx, re-reference it.
  
The following operations are supported. For formal definitions, see service description.
GetsupportcityQuery Information of domestic and foreign cities or regions supported by this weather forecast Web Services
Input parameter: byprovincename = the specified continent or Chinese province. If it is all or empty, all cities are returned. return data: A one-dimensional string array string () with the structure: city name (city code ).
  
GetsuppdatasdatasetObtain information about continents, domestic and foreign provinces, and cities supported by this weather forecast Web Services
Input parameter: none; Return: Dataset. Dataset. Tables (0) is the data of supported continents and provinces in China, and Dataset. Tables (1) is the data of domestic and foreign cities or regions supported. Dataset. tables (0 ). rows (I ). item ("ID") primary key corresponds to dataset. tables (1 ). rows (I ). item ("zoneid") foreign key.
Tables (0): Id = id Primary Key, zone = supported continents and provinces; Tables (1): Id primary key, zoneid = foreign key corresponding to tables (0) ID, area = city or region, areacode = city or region code.
  
GetsupportprovinceObtain information about continents, domestic and foreign provinces, and cities supported by this weather forecast Web Services
Input parameter: none; returned data: A one-dimensional string array string () with the name of a continent or a Chinese province.
  
GetweatherbycitynameObtain the weather conditions, current weather conditions, weather and life indexes in the next three days based on the city or region name query.
The call method is as follows: Enter the parameter thecityname = Chinese city name (available in English for foreign cities) or the city code (the default value is Shanghai if not entered), for example, Shanghai or 58367, if a city name already exists, use the city code to query the data (obtained through getsupportcity or getsupportdataset). The returned data is a one-dimensional array string (22) with 23 Elements in total.
String (0) to string (4): province, city, city code, city image name, last update time. String (5) to string (11): the temperature, Overview, wind direction, and wind power of the day. The name of the image showing the start of the weather trend is shown in Figure 1 ), name of the ending weather trend image (Icon 2), current weather conditions, weather and life indexes. String (12) to string (16): the next day's temperature, Overview, wind direction and wind power, MAP 1, Icon 2. String (17) to string (21): the temperature, Overview, wind direction, and wind power on the third day. For example 1 and 2. String (22) Description of the city or region to be queried
Download weather icon
  
(Including large, medium, and small sizes) weather Legend: Call this weather forecast Web Services instance download (VB Asp.net 2.0)
  
GetweatherbycitynameproQuery the weather conditions, current weather conditions, weather and life indexes of the next three days by city or region name (for Commercial Users)
The call method is the same as getweatherbycityname. input parameter: theuserid = Business User ID

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.