我正在使用以下代码将标记指向地图。请指导我如何从代码中将当前位置的方向线绘制到此点。像从源目标指向的行
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);
}
答案 0 :(得分:0)
看一下这个链接,这是一个关于它的教程。
http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html
此外,在此主题中您可以找到更多信息: