android - Show direction on map of 2 points -


i want take string input example new delhi & mumbai , want show path between them on google map.

i have used not working.

string new_url = "http://maps.google.com/maps?saddr=" + serverdata.lattitude + "," + serverdata.longitude + "&daddr=" + latitude + "," + longitude ;  intent intent_map = new intent(intent.action_view, uri.parse(new_url)); startactivity(intent_map); 

this link have tutorial draw route path on map in our app. may , use below link map app... take 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); 

or

refter link how display driving routes


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -