I have two points whose latitude and longitude i know.
How can i calculate the distance(in Km and Miles) between them. What is the formulae?
I have two points whose latitude and longitude i know.
How can i calculate the distance(in Km and Miles) between them. What is the formulae?
You can use the haversine formula to calculate such distances.
For an accurate and complete (works with any pair of points) solution use my geodesic calculator at http://geographiclib.sf.net/cgi-bin/GeodSolve. The formulas are given in http://arxiv.org/abs/1102.1215.
Use the haversine Formula for this...
Here is the link having java script code to calculate distance
http://www.movable-type.co.uk/scripts/latlong.html