Question

Google maps Direction by default gave us a route that has a mini distance, but for my case I want to draw a custom route is this possible with android google maps api v2 ? example : enter image description here

How can I do that in android google maps api v2 ?

P.S : I already know how to draw route beetween two point but not a custom one just fellowing google directions.

Was it helpful?

Solution

I think you meant waypoint.

Look for waypoint in this link

https://developers.google.com/maps/documentation/directions/

Between your start and end point, you can set up to 8 waypoint for free which will draw a route that connect all of these point between start to finish

If its other kind of custom route you talk about then , I guess you will ended up having to find each route between 2 point at a time

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top