calculateMidpoint method

LatLng calculateMidpoint(
  1. LatLng point1,
  2. LatLng point2
)

Calculate the midpoint between two geographic points.

Given two geographic points point1 and point2, this function calculates and returns the midpoint between these two points as a LatLng object.

Implementation

LatLng calculateMidpoint(LatLng point1, LatLng point2) {
  return MidPointBetweenTwoPoints.calculateMidpoint(point1, point2);
}