Heads Up
                                                                  Pic credit - XDA 

                Google soon will notify you no to focus on phones while walking on roads, as a new update by " Digital Wellbeing " (Product by Google) update google will notify you as soon as you spend a certain time on your phone while walking on roads. The update uses your location and with the help of google's machine learning the app easily tracks your location and notifies you to " HEADS UP " so that you can concentrate on what's going on in your surroundings rather than looking at your chats. And it is said that according to XDA that the update might first arrive for pixel users and after some months to all other android users.

Working 

               The Working of the app is very simple to understand as to explain it in a very non-technical way is that the app uses your GPS location with the help of default Google Maps. And to enable it you should enable the GPS of your phone or allow Google to use your phone's GPS on its own. That's it.

Kinda Suggestion  

             It will be best if the update not only notifies you but give you a countdown to freeze if the user uses the phone even after the countdown notification then the phone just freezes down at a certain given default time and will last till the user reaches a safe place. And the one thing to mention is that the freeze down will not work if the user id. talking to someone on an audio call ( because the call option should be active for emergency usage ). Overall the update is one of the best till now so no doubt and kudos to google for the update.