0

i am using following code to point the marker on the map. please guide how can i draw the direction line from my current location to this point from the code . Like line pointing from source destination

String loc ="";
        String city ="s";
         String address = loc +  city 
         + ";
     String cleanAddress = address.replace(",", "");
     cleanAddress = cleanAddress.replace(' ', '+');

     try {
         Intent geoIntent = new Intent("android.intent.action.VIEW", android.net.Uri.parse("geo:0,0?q="
             + cleanAddress));

         startActivity(geoIntent);
     } 
umar
  • 3,073
  • 5
  • 35
  • 45

1 Answers1

0

Take a look at this link, it is a tutorial about that.

http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html

Also, in this thread you can find more info:

How to draw a path on a map using kml file?

Community
  • 1
  • 1
Finuka
  • 730
  • 7
  • 15