I'm finishing an App in wish i need to show the user the distance between him and about 500 coordinates.
using the CLLocation method to calculate it, works well, but it takes about 1 minute in iPhone 4 to finish calculations for each location.
What is the best way to do it? Using span? Any other faster way?
Thanks all,
rui
I have seen the other answers, don't know if they are right, but I think there is a better solution:
(from documentation):
You can use it like this:
I think Sahgal is right, here is some code, perhaps it will help you.
You can try another approach.You can fetch the lat-long of both the points(assuming lat-long finding will not take that much time) and there are formulae to calculate the distance using lat-long.
Here is code for that..
Define all this Macro..
and for degrees to radians
where M_PI