Possible Duplicate:
How to calculate distance between two locations using their longitude and latitude value
Before you all give me some education on how the earth is not a perfect sphere and it all changes when you get closer to the poles, which seems to be all I can find on the net. And before asking my father who is an accomplished geographer and my uncle who is a Quantum Physicist who works for NASA and me being a lowly computer programmer, I’d like to ask you guys first!
I only need a ball park Km distance as the crow flies from a phone to a list of pre populated locations for an area of 720 square kilometers, so variations are not important.
This is me right now, please don’t drop anything on me.
mLatitude=-38.3533177
mLongitude=144.9127674
And this is me ten minutes ago approximately 3kms away as the crow flies,
mLatitude=-38.3444385
mLongitude=144.9374762
How do I calculate that to get 3km?
I’m quite new to Java so I’m not sure what built in Math functions are available and I have no idea what the calculation is?
Cheers,
Mike.