As part of my iOS Development journey I want to create an app that will find users of the app within a specified radius of the current user. The best way I can describe this is like dating apps when you specify how far you want to search. How would I go about solving this - Has anyone got any great links or tutorials they could direct me to? Much appreciated.
1- geolocation must be enabled by the user.<p>2- you may forward the position of each users to a central server and perform the proximity matches there, and send back the list of close users. That means that IP connectivity is required (GSM or Wifi).<p>In any case, you get precise geolocation only when you have wifi networks visible, so you may as well require that the user enable wifi.<p>Once you have wifi enabled, it is possible to use it to scan close users directly, without using geolocation, by mere physical closeness.<p>You can also do that with bluetooth for closer distances.<p>So, how you would go about this would depend on what level of privacy and what kind of application you want to do that for.
Hi,<p>Here is a quick and easy way.Index all the user locations into a elastisearch instance and as soon as a user opens up the app , fire a near query on the elastisearch with users current location as input and get all the other users within a specified distance as json from the elasti instance.<p>This should help you <a href="http://www.elasticsearch.org/guide/en/elasticsearch/referenc.." rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/referenc...</a>.<p>The second option is to use mongodb for the same, but the first solution is much easier and faster to implement.
You're looking for PostGIS or another GIS solution.<p>With PostGIS you can use ST_DWithin to find results in a certain radius from a longitude and latitude point which is retrieved from the cell phone in iOS.