Skip to content Skip to sidebar Skip to footer

How To Display The Driving Routes

I am developing an app with which, the user can input the destination and a route from his current position to the destination will be shown on the google map. I searched online an

Solution 1:

This link have tutorial to draw route path on map in our app. this may help you and use below to link with map app... this will take to you in google map application

String uri = "http://maps.google.com/maps?f=d&hl=en&saddr="+source_latitude+","+source_longitude+"&daddr="+destination_latitude+","+destination_longitude;
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);

Post a Comment for "How To Display The Driving Routes"