I'm looking for a proven code to get gps distance between two coordinates. I'm using some code for this but sometimes doesn't work. Let me explain.
In my application I get a list of interesting locations near to me. The problem is sometimes the list I get seems to be correct but sometimes I get some locations that are kiliometers away and I know in the list some near locations are missing.
I don't know why the code I use sometimes is running, sometimes not. I would like to try with another code and compare the results. I don't have here the code I using, I will post it later.