开发者

Struggling to implement google directions api in Android App

开发者 https://www.devze.com 2023-01-08 15:28 出处:网络
I would like to implement google walking/cycle directions into an Android app im creating but I\'m struggling to get my head around how to do this. I\'ve recognised that the most accepted way is to qu

I would like to implement google walking/cycle directions into an Android app im creating but I'm struggling to get my head around how to do this. I've recognised that the most accepted way is to query google via http to retrieve a kml file, which is translated back into the android app. owever since I've been java/android programming for about a day Im just strug开发者_Go百科gling abit! Is there anyone out there who can point me to a pretty comprehensive tutorial of how to achieve a simple A to B navigation app or even better send me a simple project for me to review, breakdown and adapt!

Any help is much appreciated.

Regards


Same has been discussed here:

Launching Google Maps Directions via an intent on Android

use the following code:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345")); startActivity(intent);

0

精彩评论

暂无评论...
验证码 换一张
取 消