I am very new to Google maps I want calculate the distance between two places in android.
For that I get the two places lat and lag positions for that I write the fo
Using following this code you find distance but you want to convert in kilometer.
double distance;
Location locationA = new Location("point A");
locationA.setLatitude(latA);
locationA.setLongitude(lngA);
Location locationB = new Location("point B");
locationB.setLatitude(latB);
locationB.setLongitude(lngB);
distance = locationA.distanceTo(locationB);