<GMSRoadSnappedLocationProviderListener> Protocol Reference

<GMSRoadSnappedLocationProviderListener> Protocol Reference

Overview

Listener for events on GMSRoadSnappedLocationProvider.

Public Member Functions

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

Member Function Documentation

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

Called when the device'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.