Ask HN: Can any iOS Developers answer me this?
1–9 of 9 posts
Re: Ask HN: Can any iOS Developers answer me this?
#2Re: Ask HN: Can any iOS Developers answer me this?
#3You need to post this question to Stackoverflow (www.stackoverflow.com).
Re: Ask HN: Can any iOS Developers answer me this?
#42- 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).
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.
Once you have wifi enabled, it is possible to use it to scan close users directly, without using geolocation, by mere physical closeness.
You can also do that with bluetooth for closer distances.
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.
Re: Ask HN: Can any iOS Developers answer me this?
#5Re: Ask HN: Can any iOS Developers answer me this?
#61- geolocation must be enabled by the user. 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). 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. Once you have wifi enabled, it is…
Re: Ask HN: Can any iOS Developers answer me this?
#7Re: Ask HN: Can any iOS Developers answer me this?
#8Here 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.
This should help you http://www.elasticsearch.org/guide/en/elasticsearch/referenc....
The second option is to use mongodb for the same, but the first solution is much easier and faster to implement.
Re: Ask HN: Can any iOS Developers answer me this?
#9With 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.