Navigation SDK is currently available only to select customers. Contact sales to learn more.
New map styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
Use com.google.android.gms.location.FusedLocationProviderApi if you need to obtain the
user's current location. Use RoadSnappedLocationProvider if you need to obtain the user's
current location, snapped to the road network.
Returns
true if the listener has consumed the event (i.e., the default behavior
should not occur); false otherwise (i.e., the default behavior should occur). The
default behavior is for the camera move such that it is centered on the user location.