我正在开发一个C#的windows 8应用程序,希望获得IP地址的地理坐标或想要一个应用程序接口,可以准确或几乎地理定位的IP地址在windows 8应用程序!提前感谢您的帮助!
发布于 2013-02-19 22:00:26
在这里使用web服务是免费的,每小时有10000个请求
http://freegeoip.net/static/index.html
REST调用http://freegeoip.net/xml/[your ip]
编辑
从url下载的简单代码
using (var objClient = new System.Net.WebClient())
{
var strFile = objClient.DownloadString("http://freegeoip.net/xml/192.168.0.1");
}发布于 2013-02-19 22:03:29
如果你在任何网络搜索引擎中输入你的问题,这个页面肯定会出现:Windows 8 Geolocation sample in C#, VB.NET, C++, JavaScript for Visual Studio 2012。下载它,看看它,我相信它是有帮助的。
https://stackoverflow.com/questions/14959305
复制相似问题