Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Draw Custom Route using Android Google maps v2

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.

like image 613
AndroLife Avatar asked Oct 16 '25 13:10

AndroLife


1 Answers

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

like image 65
JustWe Avatar answered Oct 18 '25 01:10

JustWe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!