distance method

double distance(
  1. LatLng latlng1,
  2. LatLng latlng2
)

Returns the distance between two geographical coordinates according to the map's CRS. By default this measures distance in meters.

Implementation

external double distance(LatLng latlng1, LatLng latlng2);