Confirmed users
4,378
edits
(→GPS) |
No edit summary |
||
Line 6: | Line 6: | ||
How to test GPS, application to use, environment (indoor, outoor), reporting on the location and uncertainty returned. | How to test GPS, application to use, environment (indoor, outoor), reporting on the location and uncertainty returned. | ||
== Test pages == | |||
* Testing getCurrentPosition: | |||
** navigator.geolocation.getCurrentPosition function; not high : http://people.mozilla.org/~nhirata/html_tp/geo_testpage_nohigh.html | |||
** navigator.geolocation.getCurrentPosition function/high : http://people.mozilla.org/~nhirata/html_tp/geo_testpage.html | |||
* Testing watchPosition: | |||
** navigator.geolocation.watchPosition; high: http://people.mozilla.org/~nhirata/html_tp/geolocation_highwatch.html | |||
** navigator.geolocation.watchPosition; not high: http://people.mozilla.org/~nhirata/html_tp/geolocation_watch.html | |||
Using watchPosition is better if you're going to be testing an extended amount of time as it will constantly refresh the position and get multiple readings. If you are going to just get the current location it might be good to test a single point by closing the browser, clearing the cache and then reopening the browser. | |||
== Test apps == | |||
* GPS app in the engineering build or you can push it via webIDE | |||
* GPS app in the marketplace | |||
* zMaps app in the marketplace | |||
* Here maps ( is currently off market and in revision ) | |||
* Google maps in web browser ( https://maps.google.com ) | |||
** note: there are some tech evangalism bugs listed for this app. | |||
== MLS / Wifi == | == MLS / Wifi == | ||
* indoors or out, it doesn't matter as long as you are near wifi points. | |||
* wifi must be turned on | |||
* ~200 km accuracy | |||
** Note: you may want to turn cell data off; if it gets the ip from cell data then it might put you in a weird location (ip location of the cell tower) | |||
== Cell Tower == | == Cell Tower == | ||
* turn wifi off, if GPS/AGPS doesn't kick in, it will fall back to Cell tower. | |||
* cell data off | |||
* ie indoors, maybe. make sure you have bars for signals for cell | |||
* ~ 5000 km accuracy | |||
== AGPS == | == AGPS == | ||
* SUPL | * must be outside or near outside (window) | ||
* XTRA | ** best when outside away from buildings, having south side clear of buildings. | ||
* turn off wifi | |||
* turn off cell data | |||
* two different methods of access, define only one to verify : | |||
** SUPL | |||
*** SUPL must be defined. We have code in gaia pref and QC has code in /etc/gps.conf These can be manually edited to include a SUPL server. | |||
*** packet sniffing to see if SUPL server is being used is one way to check if SUPL is being used | |||
** XTRA | |||
*** /etc/gps.conf must include XTRA server in order for this to work. | |||
*** check logs to see if any package downloaded from XTRA server; if it has, then this method is being used. | |||
== GPS == | == GPS == | ||
* Requires: | * Requires: | ||
** outside location | ** outside location only | ||
*** best when outside away from buildings, having south side clear of buildings. | |||
** no wifi around or wifi off | ** no wifi around or wifi off | ||
** cell data off | ** cell data off | ||
** don't define either SUPL nor XTRA servers in the gps.conf file nor in gaia pref. | |||
** | |||
== Background info === | == Background info === |