从ip获取地区/城市 [英] get region/city from ip
本文介绍了从ip获取地区/城市的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从ip检索区域和城市?
我找到了这项服务:
http://api.hostip.info/? ip = xyz.qwe.rty
how can I retrieve the region and the city from an ip? I have found this service: http://api.hostip.info/?ip=xyz.qwe.rty
但它没有给我这样的准确信息:
http://www.ipaddresslocation.org/
But It doesn't give me accurate info like this: http://www.ipaddresslocation.org/
你知道一些免费服务吗?
我需要使用php脚本检索此信息,但我不会安装外部库。
Do you know some free service? I need to retrieve this info with a php script, but I wouldn't install external library.
非常感谢
推荐答案
这是我最喜欢的:
这篇关于从ip获取地区/城市的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文