midPointBetweenTwoGeoPoints method

LatLng midPointBetweenTwoGeoPoints(
  1. LatLng l1,
  2. LatLng l2
)

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);
}