2011-07-25 15 views
0

私は次のコードを使って地図上のマーカーを指しています。どのようにコードから現在の位置からこの点までの方向線を描くことができますか教えてください。ソースの宛先からの線のようなものgoogle map directons

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); 
    } 

答えて