是否可以检测移动浏览器的 GPS 位置? [英] Is it possible to detect a mobile browser's GPS location?

查看:23
本文介绍了是否可以检测移动浏览器的 GPS 位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个针对手机的网站,并希望在用户访问我的默认页面时获取他们当前的 GPS 纬度/经度,以便我可以向他们显示他们所在区域的结果.这可以使用 ASP.NET 吗?

I am making a web site targeted at mobile phones and would like to get the user's current GPS latitude/longitude when they visit my default page so I can show them results in their area. Is this possible using ASP.NET?

从移动浏览器获取位置数据

推荐答案

有些服务可以根据 IP 地址为您提供位置.它不会像 GPS 数据那样精确,但如果手机上没有安装应用程序,它可能会尽可能接近您.

There are services that will give you a location based on IP address. It won't be as precise as the GPS data but without having an application installed on the phone it may be as close as you are going to get.

这篇关于是否可以检测移动浏览器的 GPS 位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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