国家, 经度和 纬度 在我的网站上载入时, 然后我怎样才能获得这些数据.... 请帮帮我... 想要来源.... thnxi want to get user'sIp address,city,state,country,longitude andlatitudewhen loged in in my website,then how can i get that data....please help me...want source....thnx推荐答案我同意Marcus并在这里帮助OP一个链接: http://www.mycsharpcorner.com/Post.aspx?postID=27 [ ^ ]I agree with Marcus and to help the OP a bit here is one link:http://www.mycsharpcorner.com/Post.aspx?postID=27[^]你不能。 IP地址与客户端的物理位置之间没有固有的相关性。 您可以获得的最佳信息是IP地址的注册供应商的地理位置。这通常会解决到一个城市,但它可能距离客户的实际位置几百英里。 但是,它有可能,但大多数供应商会花你的钱。 Google [ ^ ]我建议你先检查一下。因为信息的质量差异很大。 (我的IP在某些地方解析到大约25英里,在其他地方解析为未知城市。)You can't. There is no inherent correlation between an IP address and the physical location of the client.The best you can get is the geographic location of the registered supplier of the IP address. That will generally resolve to a city, but it may be several hundred miles from the actual location of the client.However, it is possible, but most of the suppliers will cost you money. Google[^] And I suggest you check first,. as the quality of the information varies a lot. (My IP resolves to about 25 miles away on some, "Unknown city" on others.)使用 HostIp .Info [ ^ ]并获取Geo API。 或者使用任何可用的网络服务。 这个 [ ^ ]可能有所帮助。Use HostIp.Info[^] and get the Geo API.Or use any of the webservices available.This[^] may help. 这篇关于如何通过跟踪IP地址跟踪用户的位置数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 23:25
查看更多