How to calculate distance between two points

To calculate aerial distance between two points use the below mentioned code:
For more info visit here : mappls-android-sdk/docs/v1.0.7/Getting-Started.md at main · mappls-api/mappls-android-sdk · GitHub

LatLng firstLatLng = new LatLng(28, 77);
LatLng secondLatLng = new LatLng(28.67, 77.65);
firstLatLng.distanceTo(secondLatLng);