RoadSnappedLocationProvider.LocationListener

public static interface RoadSnappedLocationProvider.LocationListener

Defines signatures for methods that are called when road-snapped location updates become available. All notifications will occur on the UI thread.

Public Method Summary

abstract void
onLocationChanged(LocationEvent event)
Called when the user's location is updated.
void
onRawLocationUpdate(LocationEvent event)
Called when raw location events are sent.

Public Methods

public abstract void onLocationChanged (LocationEvent event)

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.

Parameters
event an event containing the driver's location

public void onRawLocationUpdate (LocationEvent event)

Called when raw location events are sent. Empirically, we sometimes see these when the road-snapped events are not sent.

Parameters
event an event containing the driver's location.