LocationValidator
public protocol LocationValidator
LocationValidator defines the interface for checking the validity of the location.
The LocationValidator protocol provides a method for validating a given location. Implementations of this
protocol can define custom validation logic to determine whether a location is considered fixed (valid)
or not based on the provided location and its source.
-
Validate location.
This method validates a given location by checking its accuracy or other criteria as defined by the implementor.
Declaration
Swift
func checkLocation(_ location: CLLocation, provider: LocationEngineProviderType) -> GPSStatusParameters
locationThe location to be checked.
providerThe source that provides the location.
Return Value
A
GPSStatusvalue indicating if the GPS is fixed or not as a result ofLocationValidator.
TomTom SDK for iOS (0.71.1)
LocationValidator