Advantage: Data and style separationDisadvantage: not complete. City retrieval is not supported.
Google Code: http://code.google.com/p/weather-china/
Weather-China encapsulates weather RSS feed provided by Yahoo and provides a rest API interface in JSON format. To obtain
Learning Android For some time, should improve their actual combat ability, do some simple demo. Below we introduce how to use the network API to realize the weather forecast function, mainly involves how to use the API to obtain the network data, the network data return is generally the JSON format, here also involves
> 1. XML interface Http://flash.weather.com.cn/wmaps/xml/china.xml This is the root node of the National Weather, list all the provinces, where the Pyname field is the file name of each province XML, such as Beijing is Beijing, That means Beijing's XML address is the weather in Http://flash.weather.com.cn/wmaps/xml/beijing.xml province, which lists data for each city in the province, and Beijing lists the d
Yahoo weather API usage notes, Yahoo weather apiBase_url:Https://query.yahooapis.com/v1/public/yql? Q =, public query interface, limited query timesHttps://query.yahooapis.com/v1/yql? Q =: Get the ApkId after registration. There is a limit on the number of queries, but it is enough. 0.1 million times/dayStep 1: locate the user's location on the mobile phone end (
[API] Sina weather interface Beta, api Sina weather beta
Sina's daily interface was well recognized by the public, but it was very ugly after Baidu, so he built a tool class. Here, he helped to write down the daily interface, see where to change.
Jar name: NonentityUtil
Class Name: SinaWeatherUtil, such as Sina Tianq
There is nothing to do to get the weather API, roughly checked, the domestic relatively good or Chinese weather Network (China Meteorological station), the portal has Sina and Tencent (search), other some small sites worry about instability, so no use.
The simplest script. Send a request to get JSON and parse it and
above contains a picture name that can be accessed through the address
Http://m.weather.com.cn/img/c0.gif
Http://m.weather.com.cn/img/b0.gif
Http://www.weather.com.cn/m/i/weatherpic/29x20/d0.gif
http://www.weather.com.cn/m2/i/icon_weather/29x20/n00.gif
This is a picture of weather phenomena 0 (clear), pictures of other weather phenomena and so on. c The picture is 20*20 pixels, B
Wind Weather website: https://www.heweather.com/After registration there will be a personal authentication key in the consoleAPI Help Documentation: HTTPS://WWW.HEWEATHER.COM/DOCUMENTS/API/V5#!/usr/bin/python#-*-coding:utf-8-*-#调用和风天气API查询当前天气信息 #2017/07/12import jsonimport urllib2import oscity= ' Beijing ' # keykey= ' your key ' city_name={' Beijing ': ' Beijing
Weather. php Page code
/*** Notice of license** This source file is part of evebit's private project.** Do not use this file in other place.** @ Category evebit_library* @ Package Application* @ Author Chen Qiao * @ Version $ ID: event. php 130 2011-03-18 03: 10: 02z Cheng. Wei $* @ Copyright (c) 2011 evebit Inc. China (http://www.evebit.com)*/
/*** Weather class** Access to Google
Use Google weather API to query weather forecasts
Google weather API only supports querying by zip code in the United States. For example:Http://www.google.com/ig/api? Hl = ZH-CN weather
found that the services provided by the China Meteorological Administration were paid and free. For free, there is a certain limit on the number of visits per day. Installing apps on other mobile phones does not help. In addition, free services are sometimes not very stable, so you can only use other services.
The following describes how to obtain weather data by accessing the weather forecast
Recently, the project has been very busy, and many of the company's chores have come to me, so I can't concentrate on the project, simply, today I took the time to play with Google's weather forecast service. Believe in this articleArticleTo let you know how to initiate an HTTP access request (webrequest) under. Net CF and process the requested data, such as XML data and image data. Of course, it's also entertaining to share it here!
Start, we need
This site part of the article translated from English documents, but limited to my English proficiency limited, there is no way to understand the statement, the end of the article is generally given the source of the translation, good English parents can refer to the original version of English. Another part of the site is gradually improving the function ...
Please look forward to! If there is a problem, you can go to the message feedback!
Weather fo
This site part of the article translated from English documents, but limited to my English proficiency limited, there is no way to understand the statement, the end of the article is generally given the source of the translation, good English parents can refer to the original version of English. Another part of the site is gradually improving the function ...Please look forward to! If there is a problem, you can go to the message feedback!Weather fore
provinces, where the Pyname field is the file name of each province's XML, such as the Beijing in Beijing, That means Beijing's XML address is the weather in Http://flash.weather.com.cn/wmaps/xml/beijing.xml province, which lists data for each city in the province, and Beijing lists the districts. TMP1 is the lowest temperature low, TMP2 is the highest temperature, the URL is very important, we'll talk about it later. State1 and State2 are gods horse
Weather forecast interface provided by National Weather Service
Interface Address:
Http://www.weather.com.cn/data/sk/101010100.htmlHttp://www.weather.com.cn/data/cityinfo/101010100.htmlHttp://m.weather.com.cn/data/101010100.html
For the third interface, the return information is more comprehensive and is provided in JSON format as follows
This article describes the Java call to the China Weather Network API to obtain weather information. Share to everyone for your reference. The implementation method is as follows:
An example of Harbin Ice Country weather API call w
The National Weather Service provides three types of data
Web site in:
Http://www.weather.com.cn/data/sk/101010100.html
Http://www.weather.com.cn/data/cityinfo/101010100.html
Http://m.weather.com.cn/data/101010100.html
The last one is the most comprehensive analysis.
Data parsing format:
The JSON data provided by the first URL is:
Copy Code code as follows:
{"Weatherinfo": {"City": "
://www.google.com/ig/cities? Output = xml HL = ZH-CN Country = Cn
Google opened a set of weather forecast API, which is still very useful.
Use zip code (USA)
Http://www.google.com/ig/api? Hl = ZH-CN weather = 94043 (Mountain View city, California)
Use longitude and latitude coordinates
Http://www.google.com/ig/
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.