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 Navigator or VisualNavigator, it’s required to set the Location.time parameter for each Location object so that the HERE SDK can map-match the locations properly. If the Location.time parameter is missing, the location will be ignored. For navigation, it is also recommended to provide the bearing and speed parameters for each Location object. Invoked on the main thread.

    Declaration

    Swift

    func onLocationUpdated(_ location: Location)

    Parameters

    location

    Current location.