0

i have two coordinations. the first is 32.910009, 35.423763 and the second is 32.076829, 34.775333. how i get distance in miles/kms between the coordinations?

i need it for search near me hostels.

theShay
  • 247
  • 5
  • 20
  • Possible duplicate of http://stackoverflow.com/questions/365826/calculate-distance-between-2-gps-coordinates? – Eric B. Jun 28 '12 at 17:41

2 Answers2

1
 CLLocationDistance meters = [aPlaceLocation distanceFromLocation:bPlaceLocation];

both aPlaceLocation and bPlaceLocation are CLLocation object

lu yuan
  • 7,207
  • 9
  • 44
  • 78
0

It isn't that simple, but this should get you started... http://www.movable-type.co.uk/scripts/latlong.html

aserwin
  • 1,040
  • 2
  • 16
  • 34