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) -> GPSStatus

    Parameters

    location

    The location to be checked.

    provider

    The source that provides the location.

    Return Value

    A GPSStatus value indicating if the GPS is fixed or not as a result of LocationValidator.