We have to configure mapbox so that we would get realtime estimates regarding duration , distance etc
Follow the below steps
First of all , you have to create account in mapbox.
After successfully create account in mapbox , copy the default public token into Gradle Scripts > gradle.scripts & paste the mapbox access token into MAPBOX_ACCESS_TOKEN .
Copy mapbox download token MAPBOX_DOWNLOADS_TOKEN by following instruction in given link get downloaded token of mapbox.