Find the person nearest to me.....

Lets say 10 people have an iphone with the same app on it.(they work at the same place)
Is it possible to find the nearest person to me, so i can message him then?
the problem: it must work accurate and also within a 5-story building…
Can this be done?
Thanks goup!

[import]uid: 54669 topic_id: 9713 reply_id: 309713[/import]

I highly doubt that this is possible within current corona framework, or for that matter any other usual SDKs for iOS dev.

You will definitely need some external hardware to achieve what you want. [import]uid: 48521 topic_id: 9713 reply_id: 35668[/import]

Your app could post coordinates to your web-server, and poll the server for locations.

http://developer.anscamobile.com/content/location-gps
http://developer.anscamobile.com/content/gps
http://developer.anscamobile.com/partner/mapview [import]uid: 4596 topic_id: 9713 reply_id: 35771[/import]

I don’t think you can track height, as in which floor you’re in inside a building. [import]uid: 4596 topic_id: 9713 reply_id: 35737[/import]

thanksall for the answers. what i thought so yes.
bluetooth will only work extremely nearby, so thats not anoption
in a large building im afraid. extremeley good gps reception will
give more accuracy…but thats just the case:its in a bluiding…
phew :0)
thanks all [import]uid: 54669 topic_id: 9713 reply_id: 35831[/import]

very crude and highly technical hack would be to use wifi signals from different routers/access points and use triangulation to determine user coordinates. dunno if it’s even possible… But meh… someone had to suggest it :smiley: [import]uid: 48521 topic_id: 9713 reply_id: 35839[/import]

Yeah that’s probably the way to go, but I don’t know if that’ll work indoors or be accurate enough for the use case you describe.

With the iOS SDK you could probably do something involving short range Bluetooth communications, but I’ve never seen anything like that in Corona. [import]uid: 12108 topic_id: 9713 reply_id: 35774[/import]

If you get a cell signal throughout the building, then using a central server to communicate would work.

The corona gps interface returns a height/elevation variable (event.altitude) along with the lat and longitude- never checked it myself to see if it varies/how accurate it is (or whether it only returns the maps fixed terrain elevation value vs. the devices real-time elevation).

So the overall strategy would be something like: all your devices login to your server and send their current real-time coords (and then update every minute or two). When someone needs a hand, they hit a button (tell the server), and then the server decides who’s online and the closest and sends them a message… or something like that.

If ya got a spare server, and can write some php or some such… Then CodeRebelBase above has posted some good links to get started above… [import]uid: 79933 topic_id: 9713 reply_id: 122943[/import]

If you get a cell signal throughout the building, then using a central server to communicate would work.

The corona gps interface returns a height/elevation variable (event.altitude) along with the lat and longitude- never checked it myself to see if it varies/how accurate it is (or whether it only returns the maps fixed terrain elevation value vs. the devices real-time elevation).

So the overall strategy would be something like: all your devices login to your server and send their current real-time coords (and then update every minute or two). When someone needs a hand, they hit a button (tell the server), and then the server decides who’s online and the closest and sends them a message… or something like that.

If ya got a spare server, and can write some php or some such… Then CodeRebelBase above has posted some good links to get started above… [import]uid: 79933 topic_id: 9713 reply_id: 122943[/import]