How to get straight distance between two location in android?
First read Question carefully ... I need straight distance , not by walking,car ,or etc. Take a look to this image which given below, Google provide us distance by car and driving. But I don't want it, I want straight distance between two location (latitude - longitude). Which is displayed as as RED LINE. NOTE : I don't want to put red line on Google map, just want the Distance in Units (mile,km,etc.) ANDROID double distance Location locationA = new Location(“point A”) locationA.setLatitude(latA); locationA.setLongitude(lngA); Location locationB = new Location(“point B”); locationB.setLatitude