sdk-common / com.tomtom.online.sdk.location / LocationRequest / Builder / distanceThreshold

distanceThreshold

fun distanceThreshold(minDistanceInMeters: Float): LocationRequest.Builder

Defines the minimal threshold for a distance between location updates in meters. If a location update distance difference is less than threshold, then it will be ignored and not passed to the location source.

Default value of this parameter is 0.0f which means that BasicLocationSource is only limited by the time interval.

Parameters

minDistanceInMeters - Minimal distance between location updates.