Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android, draw route on google map

In my android project I want to draw route on Google maps. I have coordinates of start and end points. On this points I get km-file from Google web service with points witch across route. For drawing parts of route I use instances of Overlay class. And this solution works, but very slowly. Are there another methods to do that? May be exists ability use built-in Google maps application or any another way?

like image 415
Dmitriy Avatar asked Jan 11 '11 15:01

Dmitriy


1 Answers

Right, you can use the built-in google maps application via an intent like this:

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

like image 108
Simon Avatar answered Oct 07 '22 19:10

Simon