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.
[null,null,["Last updated 2024-07-23 UTC."],[[["\u003cp\u003eThe navigation template uses alerts to inform users about traffic incidents and allows them to take action.\u003c/p\u003e\n"],["\u003cp\u003eNavigation alerts temporarily replace the estimated time of arrival (ETA) and provide options, such as rerouting.\u003c/p\u003e\n"],["\u003cp\u003eThese alerts automatically dismiss after a set time, ensuring the navigation route remains visible.\u003c/p\u003e\n"]]],[],null,["# Respond to a navigation alert\n\n\u003cbr /\u003e\n\nOn the\n[Navigation template](/cars/design/create-apps/apps-for-drivers/templates/navigation-template),\nyou can use a\n[navigation alert](/cars/design/create-apps/apps-for-drivers/templates/navigation-template#alerts)\nto let users know about incidents such as traffic events and take actions in\nresponse.\n\nNotification alerts appear in the spot normally used for the estimated\ntime of arrival (ETA), so they don't block the navigation route. They allow\nusers to make a simple choice about how to respond to the alert.\n\nSample flow\n-----------\n\n| User action | Where action is performed | Step count after action |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------|-------------------------|\n| While the user is navigating, the app learns about a traffic event ahead on the route. | Navigation template | 1 |\n| 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 |\n| The alert is dismissed after it times out. | Navigation template (second refresh) | 1 |"]]