distance

open fun distance(@NonNull from: MPLatLng, @NonNull to: MPLatLng): Double

Given two points, returns the distance.

Return

The distance in the units set in the MPFastSphericalUtils CTOR

Parameters

from

open fun distance(fromLatitude: Double, fromLongitude: Double, toLatitude: Double, toLongitude: Double): Double

Given two points, returns the distance.

Return

The distance in the units set in the MPFastSphericalUtils CTOR

Parameters

fromLatitude

from latitude

fromLongitude

from longitude

toLatitude

to latitude

toLongitude

to longitude