2
我在另一個Stack Overflow文章中看到,您可以通過在URL中傳遞兩個地址作爲參數,從應用程序中打開Google地圖應用程序。Android:啓動Google地圖應用程序
String url = "http://maps.google.com/maps?saddr=some+address&daddr=another+Address"
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(url));
如何從您的應用程序啓動Google地圖應用程序並獲取從當前位置到地址的路線?
因此,我使用谷歌API找到座標,然後傳遞座標作爲參數?這是如何完成的? – zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 2011-05-01 02:44:01
我用谷歌找到這個教學指南:http://www.firstdroid.com/2010/04/29/android-development-using-gps-to-get-current-location-2/ – Haphazard 2011-05-01 02:47:54