computeDistanceBetween static method

num computeDistanceBetween(
  1. LatLng from,
  2. LatLng to
)

Returns the distance between two LatLngs, in meters.

Implementation

static num computeDistanceBetween(LatLng from, LatLng to) =>
    computeAngleBetween(from, to) * earthRadius;