是否有可能获得最大的GPS precision在移动浏览器? [英] Is it possible to get maximal GPS precision on mobile browser?

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

问题描述

是否有可能接收来自网络浏览器内具有最大precision GPS位置可在移动装置上?

Is it possible to receive GPS position with the maximal precision available on a mobile device from within the web browser?

我做了测试,这两个 getCurrentPosition() watchPosition()从HTML5地理位置,走动式办公楼。我已经收到了在Android的HTC Desire(Android浏览器)和70米的iPhone 3(Safari浏览器)的最大precision,并没有高原/高速数据,带有WiFi打开。后在WiFi被关闭,精度下降至800-1000米。

I've made tests on mobile devices using both getCurrentPosition() and watchPosition() from HTML5 Geolocation, walking around an office building. I've received on Android HTC Desire (Android Browser) and iPhone 3 (Safari) maximal precision of 70m, and no altitude/speed data, with WiFi turned on. After the WiFi was turned off, accuracy fell to 800-1000 meters.

在同一时间,在Android上 GPS测试应用程序,我已经收到了1400万的GPS定位精度,另外还高度和速度数据。

In the same time, on GPS Test app on Android, I've received GPS position accuracy of 14m, and additionally altitude and speed data.

所以,我看到的,我没有在这两个设备接收的手机浏览器为完整数据的GPS设置可用,也不是precision可能设备的传感器达到。

So, as I see, I've not received in both devices in mobile browser either the full data set available on GPS, nor the precision possible for device sensors to reach.

所以,我的问题是,是GPS数据设置浏览器将收到由设备的限制,或者可以在浏览器本身不充分利用呢?我想有完整的GPS precision在我的web应用程序,而不需要写一个'正常'的移动应用程序。

So, my question is, is the GPS data set that browsers receive is limited by devices, or can the browser itself not make full use of it? I would like to have full GPS precision in my web application without need to write a 'normal' mobile app.

推荐答案

OK,我的工作collegue给了我非常有价值的提示。

OK, my work-collegue gave me very valuable hint.

出于安全考虑,内置的浏览器Android版(所以,Android浏览器,关于这一点我做了测试)没有得到满precision GPS定位。 precision是premeditation降低。因此,当无线网络被关掉,我已经得到了响应accurance为800-1000米。带wifi打开,我已经回调接收的accurance是abount 70米。

For security reasons, built-in browser for Android (so, Android browser, on which I've made tests) doesn't get GPS location with full precision. Precision is with premeditation lowered. So that, when WiFi was switched off, I've got response that accurance is 800-1000 meters. With WiFi turned on, the accurance I've received on callback was abount 70 meters.

所以,我做了测试用的Opera Mobile和Firefox,这是需要许可时,安装(同GPS测试)从GPS得到准确的位置。这些浏览器,开关GPS关闭与accurance&LT接收到的数据后, 10米,一样的原生应用程序。

So, I've made test with Opera Mobile and Firefox, which are requiring permission to get accurate location from GPS when installed (same as GPS test). These browsers, after switching GPS off received data with accurance < 10 meters, same as native app.

所以对于Android的回答是:不使用Android浏览器的网站,您要获得GPS定位精度高。看来,谷歌的人决定,如果用户不接受GPS precise的Andr​​oid浏览器的位置,他可能不知道,这个浏览器提供这样precise数据WWW网站。至于Opera和Firefox - 这是用户安装的应用程序,所以这是他的选择。

So the answer for Android is: do not use Android Browser for web sites, for which you want to get GPS location with high accuracy. It seems that Google people decided, that if user did not accepted GPS precise location for Android Browser, he may not be aware, that this browser gives so precise data to WWW sites. As for Opera and Firefox - it's user-installed app, so it's his choice.

有关iPhone的测试带WiFi关闭了50米precision的Safari浏览器。因此,精确度要少得多的限制,作为Android的,但是限制而成。然而,有与其他HTML5,支持浏览器取代Safari浏览器,因为歌剧停止其开发的iPhone的一个问题。

The test for iPhone with WiFi switched off gave 50 meters precision for Safari. So the accuracy is much less restricted as for Android, however the restriction is made. However, there's a problem with replacing Safari with other HTML5-supporting browser, since Opera stopped its development for iPhone.

所有的测试都是在办公楼外发,当10-12 GPS发射器,其中在眼前。

All tests were made outside of the office building, when 10-12 GPS transmitters where in sight.

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

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