我们如何获得当前的用户位置. [英] How to we get current user location.

查看:65
本文介绍了我们如何获得当前的用户位置.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想显示用户的当前(近)位置.


I want to display the user''s current (nearly) location. how is it possible in asp.net?

推荐答案

获取他的IP地址,然后执行whois查询以找出他的公司/他的服务提供商和位置. br/> 好吧,这是提供商的位置,我用我的IP进行了测试,发现柏林-距离酒店有300多公里,但在全球范围内也没错.
Get his IP address, then do a whois query to find out his company/his service provider and the location.
Well, it is the location of the provider, I tested with my IP and detected Berlin - more than 300 km away, but on a world-wide scale not so wrong either.


这篇关于我们如何获得当前的用户位置.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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