努力在Android应用程序中实现谷歌方向API
我想在我正在创建的 Android 应用程序中实现谷歌步行/自行车方向,但我正在努力弄清楚如何做到这一点。我认识到最接受的方法是通过http查询google来检索kml文件,该文件被翻译回android应用程序。然而,自从我从事 java/android 编程大约一天以来,我只是有点挣扎!有没有人可以向我指出一个非常全面的教程,教我如何实现一个简单的 A 到 B 导航应用程序,或者更好地向我发送一个简单的项目供我审查、分解和适应!
非常感谢任何帮助。
问候
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 struggling 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此处已讨论过相同内容:
通过意图启动 Google 地图路线Android
使用以下代码:
意图意图=新意图(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google. com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));
startActivity(意图);
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);