[GIS] What GIS tools and packages are needed to find out nearby users in android application

androidjava

I'm building a location based android application with following requirements:

  1. Need to find out nearby users(i.e users using the same application)
  2. Need to find out users in the state
  3. Need to find out users in the country

All the processing will be done on the server side. The android application will communicate with the server through web services. What tools and packages do I require to achieve these requirements? I'm new to GIS.
My preferences are java and free software.

Best Answer

Very simple answer is: Somekind way to read GPS data. Convert it to Point(' longitude lattitude) format, tool to send it to server side and store it in PostGIS ( you need to add from user, now() to it. Do PostGIS search for mentioned Point 'SELECT users, st_distance(the_geom, point) from somwtable where ST_distance(the_geom, point) < "some sane value". Return users, distance rows to back android and display them ).

So all you need is PostGIS database.

Related Question