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
@Chirag Patel
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); // in meters
distance = locationA.distanceTo(locationB)/1000; // in km