Hello I am creating travel app. I want to find current location and find the distance between selected hotel or place from this location.. I searched core location but it is not returning longitude and latitude of current location in simulator .please help me and how can I calculate distance ?
Asked
Active
Viewed 364 times
1 Answers
1
To calculate distances you can use the distanceFromLocation:
method of the CLLocation class.

Nick Weaver
- 47,228
- 12
- 98
- 108
-
1You can't test this with your simulator as location manager fails in the simulator. You need to test this feature on the device. If you just need to know the accuracy of the distance, get the lat/long value of a particular point from google maps and hard code it in your application and test. – Nithin May 31 '11 at 10:29