Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distance between two iPhones

I'm trying to create an app which will allow me to measure the distance between two iPhones using the data from GPS. I have already achieved to find the location but I don't know how to make them exchange this data so as to evaluate the distance between them. Could you please help me to solve the problem? Thanks in advance.

like image 270
user1640344 Avatar asked Sep 13 '12 12:09

user1640344


People also ask

How can I find the distance from one iPhone to another?

Touch and hold anywhere on the map that isn't a place's name or icon. A red pin appears. Select Measure distance .

How do you measure the distance between phones?

The 'WifiNanScan app lets you measure distance with a precision of about one metre with phones up to 15 metres apart. Google has launched a new WifiNanScan app for developers on the Google Play store. This app measures distance between two smartphones using the Wi-Fi Aware protocol.

How far can iPhone measure distance?

iPhone automatically detects the dimensions of rectangular objects, or you can manually set the start and end points of a measurement. For best results, use Measure on well-defined objects located 0.5 to 3 meters (2 to 10 feet) from iPhone.

How can I find the distance between two Bluetooth devices?

With the received signal strength, you measure the distance of Bluetooth A from B by using the Bluetooth signal strength that A receives from B. The a is a factor to offset the maximum received signal.


2 Answers

I believe that the best way to do it is setting up a server (e.g. using Google App Engine) and make the phones connect to it to exchange their position.

like image 54
Fszczemton Avatar answered Sep 17 '22 23:09

Fszczemton


You can use " getDistanceFrom " function in " CLLocation "

like image 32
Red Mak Avatar answered Sep 17 '22 23:09

Red Mak