I am creating an Android application showing the route from source to destination.
In the application, I find the best path compared to Google Maps.
But for directions, I want an API that will show directions from source to destination in turn, as shown in the app.
As I create my own path, I have many latitudes and longitudes from source to destination.
Can I use my own data (for example, latitudes and longitudes) and show them in the figure below?

source share