天天看點

C# 網絡程式設計之通過ip位址擷取地理位置(補充)

當時擷取的結果如下圖所示,但是可能由于有道已經删除該url網址,現在已經不能通過該接口擷取地理位置.所有我又提供了一種新的方法,希望能幫助到大家和那位朋友.

C# 網絡程式設計之通過ip位址擷取地理位置(補充)
C# 網絡程式設計之通過ip位址擷取地理位置(補充)
C# 網絡程式設計之通過ip位址擷取地理位置(補充)

源代碼及顯示的結果如下所示:

C# 網絡程式設計之通過ip位址擷取地理位置(補充)

下面提供一些這方面的有些非常優秀的内容僅供大家學習,同時也友善自己下次查閱:

1.c# 網絡程式設計之擷取本機名\ip位址\域名\實體位置 (這是我自己的文章,結合該篇文章學習)

<a target="_blank" href="http://blog.csdn.net/eastmount/article/details/9270221">http://blog.csdn.net/eastmount/article/details/9270221</a>

2.get user location by ip address(使用c#擷取實體位置 也是該篇文章的基礎)

<a target="_blank" href="http://www.codeproject.com/questions/686644/get-user-location-by-ip-address">http://www.codeproject.com/questions/686644/get-user-location-by-ip-address</a>

3.擷取電腦實體位址以及通過ip位址擷取目前地理位置的接口-搶街飯的專欄(使用php擷取非常優秀的文章)

<a target="_blank" href="http://blog.csdn.net/lzwjavaphp/article/details/6972667">http://blog.csdn.net/lzwjavaphp/article/details/6972667</a>

4.ip address location in asp.net(consume a free online api and fetch data using linq to xml)

<a target="_blank" href="http://www.dotnetcurry.com/showarticle.aspx?id=325">http://www.dotnetcurry.com/showarticle.aspx?id=325</a>

5.get uesr location by ip address(關于它的讨論 希望大家去stack overflow學習知識)

<a target="_blank" href="http://stackoverflow.com/questions/4327629/get-user-location-by-ip-address">http://stackoverflow.com/questions/4327629/get-user-location-by-ip-address</a>

 6.xmldocument.load(url)問題(讀取天氣資訊文章,與我的方法相同)

<a target="_blank" href="http://www.cnblogs.com/sharpfeng/archive/2011/03/02/1968666.html">http://www.cnblogs.com/sharpfeng/archive/2011/03/02/1968666.html</a>

最後希望該篇文章對大家有所幫助,同時希望該文章能幫助那位同學解決問題.如果文章中錯誤或不足之處,見諒!由于隻會采用這種通過第三方接口的方法擷取實體位置,很大程度依賴與第三方的資料,如果該網址被廢除,很麻煩,同時會遇到不同網址查詢結果也不同.希望有好的方法可以讨論分享.