Google Maps on MapView

I'm trying to find a way to use Google Map Directions to show directions, to point A and B, without launching it as an intention that opens the map in Google Navigator or on your phone’s web browser.

Is there a way to have Google Directions for MapView only?

+4
source share
1 answer

Yes, there is a way. However, keep in mind that if you want to show routes on a map, you will have to do a lot of line drawing using the canvas, and not forget that you will still call the Google Directions API to get a JSON response that you will have to decode.

To decode this JSON response, please refer to this excellent answer to another question: fooobar.com/questions/139294 / ....

0
source

All Articles