Reputation: 1802
Can i draw three route in my application(use google map api),i can draw a route with kml, now i want to draw three different route between two points,such as foot, bike, bus and so on.
Upvotes: 0
Views: 1679
Reputation: 2086
String uri = "http://maps.google.com/maps?saddr=" + lat+","+lon+"&daddr="+lat1+","+lon1;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);
I think this may help you.
Upvotes: 1
Reputation: 15390
Yes you can draw a route in Android on a map, you may want to start by saving your GPS points into a database.
You could also just use the Google Maps API to do this for you automatically.
Upvotes: 0