如何获得谷歌驾驶指令使用谷歌地图API在Android上? [英] How to get google driving instruction using google map api on android?

查看:150
本文介绍了如何获得谷歌驾驶指令使用谷歌地图API在Android上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android编程的新手。我已经阅读了许多有趣的驾驶方向应用。所以,我试图建立基于地图和GPS的应用程序。



我可以在2点之间获得和显示方向,但我不知道如何显示文本说明,如$ / b
$ b

http://i.stack.imgur.com/7i7ei.jpg

p>

有人可以帮我吗?或者给我toturial?
感谢您的好意

解决方案

此api为您提供有关路线步骤的信息:



http://maps.googleapis.com/maps/api/directions/json?origin=&destination=&sensor=true&alternatives=true&units=metric ;



解析JSON,创建listActivity,并将数据放入它中。这就是所有

PS

>

http://代码。 google.com/apis/maps/documentation/directions/#DirectionsRequests


I'm newbie at android programing. I have read many interesting driving direction application. so, I tried to build map and gps based application.

I can get and show direction between 2 point , but I don't know how to show textual instruction like

http://i.stack.imgur.com/7i7ei.jpg

Can somebody help me out? Or give me toturial? Thank for you kindness

解决方案

This api gives you an information about the route steps:

http://maps.googleapis.com/maps/api/directions/json?origin=&destination=&sensor=true&alternatives=true&units=metric;

Parse the JSON, create listActivity and put the data in it.That is all

P.S.

http://code.google.com/apis/maps/documentation/directions/#DirectionsRequests

这篇关于如何获得谷歌驾驶指令使用谷歌地图API在Android上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆