maps-utils-ktx / com.google.maps.android.ktx.utils / com.google.android.gms.maps.model.Polyline

Extensions for com.google.android.gms.maps.model.Polyline

contains

Computes where the given latLng is contained on or near this Polyline within a specified tolerance in meters.

fun Polyline.contains(latLng: LatLng, tolerance: Double = 0.1): Boolean

sphericalPathLength

The spherical length of this Polyline on Earth as measured in meters.

val Polyline.sphericalPathLength: Double