isBetterLocation

fun isBetterLocation(location: Location, currentBestLocation: Location?): Boolean

Determines whether one Location reading is better than the current Location fix

Parameters

location

The new Location that you want to evaluate

currentBestLocation

The current Location fix, to which you want to compare the new one