ANDROID: Implement Google Maps direction in my app

270 Views Asked by At

I would like to add to an app the directions from the Google maps as seen bellow, but the information to come from the google maps when I am starting the navigation (a route on the main Maps App. Would that be possible? And if yes, where would I start?
enter image description here

EDIT: This post describes better the issue I'm having, and it even provides a Kotlin library that can be used.

2

There are 2 best solutions below

0
Marius Panaite On BEST ANSWER

This can be solved using the notification Listener Service. There is a Kotlin library that can be used.

1
Pratik Butani On

You can use Mapbox API for Navigation. It's a very great library to use.

Check this tutorial for implementation.

Check the example that you want exactly.

Basic UI Navigation Example

BETA => Turn-by-turn navigation