Navigation SDK is currently available only to select customers. Contact sales to learn more.

<GMSRoadSnappedLocationProviderListener> Protocol Reference

Stay organized with collections Save and categorize content based on your preferences.
<GMSRoadSnappedLocationProviderListener> Protocol Reference


Listener for events on GMSRoadSnappedLocationProvider.

Public Member Functions

(void) - locationProvider:didUpdateLocation:
 Called when the user's location is updated.

Member Function Documentation

- (void) locationProvider: (GMSRoadSnappedLocationProvider *)  locationProvider
didUpdateLocation: (CLLocation *)  location 

Called when the user's location is updated.

This is provided as frequently as possible by the location provider. Locations are only road-snapped when in driving mode, not when walking or cycling.

If any of the location properties are unavailable, they are set to the following values: coordinate: kCLLocationCoordinate2DInvalid altitude: NAN horizontalAccuracy: -1 verticalAccuracy: -1 course: -1 speed: -1

Note that this method will not be called if the terms and conditions have not been accepted.