使用C#从IP地址获取邮政编码的任何方法 [英] Any way to get zip code from IP address using C#

查看:147
本文介绍了使用C#从IP地址获取邮政编码的任何方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我不知道这是不是双重职务!是否可以获取邮政编码或邮政编码形式的IP地址?据我谷歌搜索,我有一些方法可以从IP获取经度和纬度.如果我们可以从纬度和经度或直接从ip中找到邮政编码,我会很受伤.

谢谢

Hi

I do not know if this is double post! Is this possible to get zip code or postal code form IP address? As per I googling I have some way to get longitude and latitude from IP. I would be wounder if we can find zip code from latitude and longitude or directly from the ip.

Thanks

推荐答案

否. IP地址不是地理地址.

IP地址可以(至少在理论上)位于特定的城市,但是它非常非常频繁(距离至少50英里),偶尔也只有数百英里.

IP地址大部分是由ISP分配的,因此倾向于在​​ISP的办公室进行注册.我的IP现在已经回到了在不同国家/地区的地理位置!
No. IP addresses are not geographical.

IP address can (in theory at least) be located to a specific city, but it is very, very often out by 50 miles, and occasionally by hundreds.

IP addresses are allocated by ISP for the most part, so tend to be registered at the offices of the ISP. My IP has come back with a physical location in different countries before now!


在Google搜索后,我发现了 http://iplocationtools.com/index.html [^ ]网站显示,它可以根据IP地址为您提供邮政编码.

希望对您有所帮助:)

注意:我还没有尝试过!
After a google search I found http://iplocationtools.com/index.html[^] site which is showing it can give you the Zipcode based on the IP address.

Hope it helps :)

NOTE: I haven''t try though!


这篇关于使用C#从IP地址获取邮政编码的任何方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆