Take the 2-minute tour ×

As we know, soon GoogleMap API v1 will be deprecated and we've seen some tutorials on how to draw route from A to B in MapView (lets say A is some building in Moscow and B is some building in Warsaw)

However, browsing the internet, I haven't found any decent tutorial on how to get and draw route on GoogleMap (not in MapView).

In tutorial that I've seen and used there was used KMLHandler, but parsing failed.

So does anyone know is it possible to draw route on GoogleMap from A to B? Thanks

share|improve this question
Consider increasing your accept rate. –  Egor Jan 11 '13 at 15:46
add comment

1 Answer

Yes it is possible.

The Android developers website have the whole procedure very well explained: https://developers.google.com/maps/documentation/android/lines

share|improve this answer
I've seen that, but what I truly need is to draw on path in the map and also I need to get the shortest route –  Toochka Jan 11 '13 at 16:47
There're 2 different problems here that you're not acknowledging. 1 is how to draw the lines on the map; and that is answered on the tutorial. 2 is how to calculate a route between points, and that is a much more complex problem, and is the reason only huge companies with a lot of know-how like Google or Tom-Tom do it. So answering to your question: is it possible to draw a route? Yes it is! But how to find out the route is something else. –  Budius Jan 11 '13 at 16:51
And Google doesn't give any functionality to ease finding the shortest route? –  Toochka Jan 11 '13 at 16:59
add comment

Your Answer


