你能帮助我如何绘制从我的位置(当前位置)到我们手动输入程序的某些位置的行车路线,所以当我们录制标记的位置时,将从我当前的位置绘制行车路线到标记的位置,但标记的位置不仅仅是一个, 我的一些地点:
经纬度(5.175783,97.140950);
经纬度(5.172767,97.131161);
经纬度(5.163928,97.136822);
经纬度(5.180353,97.122297);
我接下来的教程如下。
Driving route from my location to destination in Google Maps Android API V2
答案 0 :(得分:0)
google中有很多样本可供您浏览。
检查以下链接,您可能会有所了解
finding route directions from source to destinaton in android
Showing a route between two points with multiple waypoints
http://www.vogella.com/articles/AndroidLocationAPI/article.html
http://dhavaltshah2012.blogspot.in/2012/04/source-to-destination-path-in-map.html
how to Draw train route map between source and destination in android
http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/