Android, draw a route on google map

In my android project, I want to draw a route on google maps. I have the coordinates of the start and end points. At this moment, I get the km file from the Google web service using points along the route. To draw parts of the route, I use instances of the Overlay class. And this solution works, but very slowly. Are there other methods for doing this? Could it be possible to use the built-in Google Maps application or in any other way?

+7
source share
2 answers

That's right, you can use the built-in Google Maps application with the following:

 Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345")); startActivity(intent); 

see this question for more details

+10
source

there is a tutorial for using KML here: http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html

and some sample code here: How to draw a path on a map using kml file?

it all looks like too complicated complicated work - Google must provide an API for this.

+2
source

All Articles