Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>look for the DOP (Dilution Of Precision) value for your GPS fix: it tells you how precise the position is, according to the number of GPS satellites used to compute the position. incidentally, the number of satellites used to compute the position is important.</p> <p>so, once your application starts, poll the GPS for a position, until the DOP value gets below a given threshold (a DOP of 3.0 is quite precise, around 20 meters). if you don't get such a value in a specified amount of time, then use the best position you received.</p> <p>almost all GPS chips are now using A-GPS, especially on android, so you get a fix pretty quickly (under 30 seconds). in case your A-GPS informations are out of date (A-GPS files are downloaded through an internet connection), your first fix will take longer: it can take up to 6 minutes get a usable fix when the GPS have no idea where it is located. </p> <p>so to minimize battery usage: wait for the first fix. if no fix in 6 minutes, shut down the application because you won't have any position. once you have the first fix, poll the GPS for 2 or 3 minutes. if the DOP falls below a threshold (3.0 is a good guess, but try for yourself), stop polling. if the DOP don't fall below the threshold, use the position which had the lowest DOP.</p> <p>be aware that the longer you wait, the better the precision of the fix, and the DOP depends on the position of all visible satellites, sometimes there is not enough visible satellites or they are not placed optimally to get a precise position.</p> <p>if the DOP is not available (i don't know the specifics of the Android Location API), the number of satellites used to compute the position may be an imprecise but still useful information (less than 3, drop the position, 3 is awful, more than 4 is average, 10 is quite good).</p> <p>read more about DOP <a href="http://en.wikipedia.org/wiki/Dilution_of_precision_%28GPS%29" rel="nofollow">here</a>. read more about A-GPS <a href="http://en.wikipedia.org/wiki/Assisted_GPS" rel="nofollow">here</a>, and about GPS in general <a href="http://en.wikipedia.org/wiki/Global_Positioning_System" rel="nofollow">here</a>.</p> <p>of course android is able to locate your device without any GPS signal by using informations from the GSM network or surrounding Wifi networks, but then i can't tell you how to know how precise your position is.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload