TomTomSDKLocationProvider
-
Implementation of
LocationProviderthat usesCLLocationManageras a GPS source provider.See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public class DefaultCLLocationProvider : NSObject, ValidatingLocationProvider
-
Indicates if GPS is fixed or not as a result of
See moreLocationValidatorDeclaration
Swift
public enum GPSStatus
-
GeoLocation is a wrapper for CLLocation class.
See moreDeclaration
Swift
public struct GeoLocation -
The source that provides the location.
See moreDeclaration
Swift
public enum LocationEngineProviderType -
Part of the
See moreTomTomSDKNavigationEngines/MapMatchingResultthat represents a single matched position candidate.Declaration
Swift
public struct MatchedLocation
-
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 onCLLocationManager. The default implementation can be replaced using:mapView.map.locationProvider = engineSee moreNote
TheLocationProviderprotocol 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.Declaration
Swift
public protocol LocationProvider : AnyObject
-
The SimulatedLocationProvider provides simulated location updates to simulate driving on GPX/TTP tracks or route geometry. When used in
DefaultTomTomNavigationand it’s locations are generated from route geometry, please also set the same location provider inTomTomMap. If not, then the navigation experience might not be smooth.See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public class SimulatedLocationProvider : ValidatingLocationProvider -
Defines the policy for validating incoming location updates
See moreDeclaration
Swift
public protocol LocationUpdateValidator
-
LocationValidator defines interface for checking if the location valid or not.
See moreDeclaration
Swift
public protocol LocationValidator
-
DefaultLocationValidator is default implementation of LocationValidator.
See moreDeclaration
Swift
public class DefaultLocationValidator : LocationValidator
-
Declaration
Swift
extension CLLocation
TomTom SDK for iOS (0.53.1)
TomTomSDKLocationProvider