Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    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. 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.
    1. COThanks, your post led me to this: http://code.google.com/p/javageomodel/source/browse/trunk/geocell/test/com/beoui/utils/HowToUseGeocell.java?r=3 But i can't quite figure out how i can query it in the sqlite database. As I said, I need a quite accurate distance from the given location to the locations in the database and the nearest locations ordered by distance. I can calculate the distance with Locations distanceTo() method, but that's outside of the DB and therefore slower.
      singulars
    2. COYou never mentioned how many data points you are working with, or the use case for that matter. If you really need a list of all of n points in accurate distance order you may want to consider a server side option or if possible just hold your data in memory and apply distance calc for each. For mobile you are on a 'limited' resource machine where a typical use case is search for nearby things, i.e. use a geohash to reduce the result set, and then sort out the stuff in the result set to display to the user. For the geocell/geohash use the hexstring as your index for each POI.
      singulars
    3. COI have about 400 data points. Server side querying isn't really an option, because I want the app to be usable even if it's not online (Mobile network internet isn't free and I don't think users would be glad to have to be online everytime they would want to use the app). As I mentioned, I'm using a content provider to access the DB and it would be redundant to have another "provider" that's different from the DB content provider.
      singulars
 

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