从IP地址获取地理位置 [英] getting geolocation from ip address
问题描述
可能重复:结果
在Java中
块引用>是否有可能获得在Java中,从IP地址的经度和纬度值?如果有可能,请让我know.actually我建立在安卓这将跟踪根据其IP地址的用户的应用程序。
这样做,如果我有经纬度值,然后我可以使用谷歌地图在android系统,但主要的任务很容易得到用户的位置是从IP地址获取经纬度。
我工作的这个,如果任何人有任何想法,请让我知道在此先感谢。解决方案此API 返回的位置一个IP地址(国家,地区,城市,邮编code,纬度,经度)和XML格式相关的时区。
虽然基于IP的位置检测确实有很多缺点。
得到的android 无线IP位置
Possible Duplicate:
Best way to get geo-location in JavaIs it possible to get the longitude and latitude value from IP address in java? If it is possible, please let me know.actually I am building an application in android which would track users based on their ip address. for doing this if I'm having latitude and longitude values then I can easily get location of user using google map in android but major task is to obtain latitude and longitude from ip address. I'm working on this if anyone have any idea please let me know thanks in advance.
解决方案This API returns the location of an IP address (country, region, city, zipcode, latitude, longitude) and the associated timezone in XML format.
Though IP based location detection does have lots of drawbacks.
Get location of wifi ip in android
这篇关于从IP地址获取地理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!