midPointBetweenTwoGeoPoints method
Calculate the midpoint between two geographic points.
Given two geographic points l1
and l2
, this function calculates and returns the midpoint between these two points.
Implementation
LatLng midPointBetweenTwoGeoPoints(LatLng l1, LatLng l2) {
return GeoPoints.midPointBetweenTwoGeoPoints(l1, l2);
}