LocationDelegate
public protocol LocationDelegate : AnyObject
This protocol should be implemented in order to receive notifications about location updates.
-
Called each time a new location is available. In a navigation context while using the
NavigatororVisualNavigator, it’s required to set theLocation.timeparameter for eachLocationobject so that the HERE SDK can map-match the locations properly. If theLocation.timeparameter is missing, the location will be ignored. For navigation, it is also recommended to provide thebearingandspeedparameters for eachLocationobject. Invoked on the main thread.Declaration
Swift
func onLocationUpdated(_ location: Location)Parameters
locationCurrent location.