Respond to a navigation alert
Stay organized with collections
Save and categorize content based on your preferences.
On the
Navigation template,
you can use a
navigation alert
to let users know about incidents such as traffic events and take actions in
response.
Notification alerts appear in the spot normally used for the estimated
time of arrival (ETA), so they don't block the navigation route. They allow
users to make a simple choice about how to respond to the alert.
Sample flow
User action |
Where action is performed |
Step count after action |
While the user is navigating, the app learns about a traffic event ahead
on the route. |
Navigation template
|
1 |
A navigation alert appears instead of the ETA to warn the user and offer
an option to reroute, while a progress indicator tracks the time until
automatic dismissal of the alert. |
Navigation template (refresh)
|
1 |
The alert is dismissed after it times out. |
Navigation template (second refresh)
|
1 |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-23 UTC."],[[["The navigation template uses alerts to inform users about traffic incidents and allows them to take action."],["Navigation alerts temporarily replace the estimated time of arrival (ETA) and provide options, such as rerouting."],["These alerts automatically dismiss after a set time, ensuring the navigation route remains visible."]]],[]]