Android上的Directions API [英] Directions API on Android
问题描述
当我浏览这个博客,我对在android上使用Directions API感到困惑。
是否可以将方向API集成到地图上?
为了更清楚地说明,我正在研究一个应用程序,该应用程序将接收来自用户的输入,例如 source
和 destinations
...接受这些输入我想显示一张适当的地图,其中描述了行走和驾驶方向。只是一个 JSON解析器(或XML)
足以支持我的这个愿望,以及一个绘制画布......或者我将不得不创建我的自己的API 来完成这项工作?
是的,可以将direcitons api和map整合在一起。
无需编写自己的API。你可以很容易地实现这一点。
使用Google android api V2不需要绘制画布。添加内容非常简单。
请阅读Google地图
https://developers.google.com/maps/documentation/android/start
和for路线
https://开发者。 google.com/maps/documentation/directions/
在此过程中您遇到任何具体问题,请问这个问题。
谢谢,
While I was going through this blog, I got confused about using the Directions API on android.
Is it possible to integrate the Directions API on the Map?
To make it more clear, I am working on an application that would take in inputs from the users for things like source
and destinations
... taking these inputs I would like to display an appropriate map having both the walking and driving directions depicted. Is just a JSON parser (or XML)
enough to support this wish of mine, along with a canvas to draw on ... or will I have to create my own API to get this done?
Yes it is possible to intergrate direcitons api with map. There is no need to write your own API. You can achieve this very easily. With Google android api V2 there is no need to draw canvas. Adding things in it is very easy.
Please read here for Google Maps https://developers.google.com/maps/documentation/android/start
and for directions
https://developers.google.com/maps/documentation/directions/
During the process you have any specific problem then please ask that.
Thanks,
这篇关于Android上的Directions API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!