使用我的Android應用程序,這是我在用戶的當前位置,以規則的間隔和谷歌地圖的標記使用上顯示出來,如何使用Google map api在Google地圖上繪製路線?
$ MAP-> addMarker($行[「緯度」] ,$行[ 'LNG'],$ isclickable,$標題,$信息);
請幫我畫一條加入這些標記的路線。
還有一件事,我使用位置管理器網絡提供者獲取座標,所以大部分點(緯度,經度)都不在路上。有什麼方法可以在路上正確使用嗎?
使用我的Android應用程序,這是我在用戶的當前位置,以規則的間隔和谷歌地圖的標記使用上顯示出來,如何使用Google map api在Google地圖上繪製路線?
$ MAP-> addMarker($行[「緯度」] ,$行[ 'LNG'],$ isclickable,$標題,$信息);
請幫我畫一條加入這些標記的路線。
還有一件事,我使用位置管理器網絡提供者獲取座標,所以大部分點(緯度,經度)都不在路上。有什麼方法可以在路上正確使用嗎?
檢查這些鏈接,
http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html
How to draw a path on a map using kml file?
J2ME/Android/BlackBerry - driving directions, route between two locations
http://blog.synyx.de/2010/06/routing-driving-directions-on-android-part-1-get-the-route/
http://code.google.com/android/add-ons/google-apis/maps-overview.html