LocationUpdateValidator
public protocol LocationUpdateValidator
Defines the policy for validating incoming location updates
-
Validates new location update
Declaration
Swift
func isLocationValid(newLocation: GeoLocation, lastLocation: GeoLocation) -> Bool
Parameters
newLocation
new location
lastLocation
last known location
Return Value
true if new location is valid, false otherwise