Location Provider

  • Implementation of LocationProvider that uses CLLocationManager as a GPS source provider.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public class DefaultCLLocationProvider : NSObject, ValidatingLocationProvider
  • DefaultLocationValidator is default implementation of LocationValidator.

    See more

    Declaration

    Swift

    public class DefaultLocationValidator : LocationValidator
  • GeoLocation is a wrapper for CLLocation class.

    See more

    Declaration

    Swift

    public struct GeoLocation
  • Indicates if GPS is fixed or not as a result of LocationValidator

    See more

    Declaration

    Swift

    public enum GPSStatus
  • The source that provides the location.

    See more

    Declaration

    Swift

    public enum LocationEngineProviderType
  • LocationProvider protocol used for providing a CLLocation for TomTomMap.

    The location provider additionally facilitates the delivery of location updates to other modules within the Maps and Navigation SDKs; modules can add observers to receive location updates. For MapView, TomTom provides an implementation based on CLLocationManager. The default implementation can be replaced using:

     mapView.map.locationProvider = engine
    

    Note

    The LocationProvider protocol is responsible for providing location information but does not handle location authorization. It is the responsibility of the client to request and handle location authorization separately.
    See more

    Declaration

    Swift

    public protocol LocationProvider : AnyObject
  • Declares an observer that can receive location updates.

    See more

    Declaration

    Swift

    public protocol LocationUpdateObserver : Observer
  • Defines the policy for validating incoming location updates

    See more

    Declaration

    Swift

    public protocol LocationUpdateValidator
  • LocationValidator defines interface for checking if the location valid or not.

    See more

    Declaration

    Swift

    public protocol LocationValidator
  • Part of the TomTomSDKNavigationEngines/MapMatchingResult that represents a single matched position candidate.

    See more

    Declaration

    Swift

    public struct MatchedLocation
  • The SimulatedLocationProvider provides simulated location updates to simulate driving on GPX/TTP tracks or route geometry. When used in DefaultTomTomNavigation and it’s locations are generated from route geometry, please also set the same location provider in TomTomMap. If not, then the navigation experience might not be smooth.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public class SimulatedLocationProvider : ValidatingLocationProvider
  • Declaration

    Swift

    extension CLLocation