資源簡介
VS2012,MVC4. 根據客戶端IP自動查詢當前天氣,調用的是國家氣象局公開的天氣查詢接口.內附"常用IP查詢接口地址.docx","國家氣象局免費天氣預報接口API.docx"及天氣查詢代碼.

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
namespace?Business
{
????public?class?AddInterFace
????{
????????///?
????????///?國家氣象局?提供天氣查詢接口??返回城市當前溫度的接口
????????///?
????????public?static?string?CurrentTempWeatherPath?=?“http://www.weather.com.cn/data/cityinfo/{0}.html“;?//{0}為城市代碼
????????///?
????????///?國家氣象局?提供天氣查詢接口??返回城市6天的天氣預報
????????///?
????????public?static?string?ParticularWeatherPath?=?“http://m.weather.com.cn/data/{0}.html“;//{0}為城市代碼
????????
????????///?
????????///?返回城市名稱?接口??用的是搜狐提供的IP查詢接口
????????///?
????????public?static?string?IPAddressBySouhu?=?“http://pv.sohu.com/cityjson“;
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????657??2013-05-16?20:53??自動天氣查詢\Weather\Business\obj\Debug\Business.csproj.FileListAbsolute.txt
?????文件???????7823??2013-05-16?18:36??自動天氣查詢\Weather\Weather\data\countryCode.txt
?????文件????????226??2013-05-16?20:50??自動天氣查詢\Weather\Weather\data\READ?ME.txt
?????文件???????6197??2013-05-16?20:53??自動天氣查詢\Weather\Weather\obj\Debug\Weather.csproj.FileListAbsolute.txt
?????文件????1138045??2013-05-14?10:40??自動天氣查詢\Weather\Weather\bin\Entityfr
?????文件???????3993??2012-05-31?01:00??自動天氣查詢\Weather\Weather\bin\Microsoft.Web.Infrastructure.xm
?????文件?????418776??2013-05-14?10:41??自動天氣查詢\Weather\Weather\bin\Newtonsoft.Json.xm
?????文件?????137872??2012-05-30?01:00??自動天氣查詢\Weather\Weather\bin\System.Net.Http.Formatting.xm
?????文件??????10071??2012-05-30?01:00??自動天氣查詢\Weather\Weather\bin\System.Web.Http.WebHost.xm
?????文件?????379561??2012-06-09?01:00??自動天氣查詢\Weather\Weather\bin\System.Web.Http.xm
?????文件?????847872??2012-05-30?01:00??自動天氣查詢\Weather\Weather\bin\System.Web.Mvc.xm
?????文件?????323277??2012-06-09?01:00??自動天氣查詢\Weather\Weather\bin\System.Web.Razor.xm
?????文件???????2656??2012-06-22?01:00??自動天氣查詢\Weather\Weather\bin\System.Web.WebPages.Deployment.xm
?????文件??????15910??2012-05-31?01:00??自動天氣查詢\Weather\Weather\bin\System.Web.WebPages.Razor.xm
?????文件?????205746??2012-05-31?01:00??自動天氣查詢\Weather\Weather\bin\System.Web.WebPages.xm
?????文件????????572??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件?????153092??2013-05-14?10:40??自動天氣查詢\Weather\Weather\sc
?????文件?????257476??2013-05-14?10:40??自動天氣查詢\Weather\Weather\sc
?????文件??????93871??2013-05-14?10:40??自動天氣查詢\Weather\Weather\sc
?????文件?????381705??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件?????202411??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件???????5767??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件???????2745??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件??????43913??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件??????39382??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件??????21577??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件??????16479??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件???????4724??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件?????170539??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
?????文件??????41326??2013-05-14?10:41??自動天氣查詢\Weather\Weather\sc
............此處省略114個文件信息
- 上一篇:原版藍寶石bios,少部分
- 下一篇:SAS統計分析與應用
評論
共有 條評論