你能帮我画一条从我的位置(当前位置)到我们在程序中手动输入的一些位置的行车路线吗,所以当我们录制一个标记的位置时,将从我的当前位置绘制一条行车路线到标记位置,但标记位置不只是一个, 这是我的一些位置:
经纬度(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
最佳答案
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/
关于android - 在 Google Maps Android API V2 中从我的位置到多个目的地的行车路线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16538661/