简体   繁体   English

Android上的Directions API

[英]Directions API on Android

While I was going through this blog , I got confused about using the Directions API on android. 当我浏览这个博客时 ,我对在Android上使用Directions API感到困惑。 Is it possible to integrate the Directions API on the Map? 是否可以在地图上集成Directions API? 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. 为了更清楚,我正在开发一个应用程序,它将接收来自用户的输入,例如sourcedestinations ......采取这些输入我希望显示一个适当的地图,同时描绘了步行和驾驶方向。 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? 只是一个JSON parser (or XML)足以支持我的这个愿望,以及绘制画布...或者我是否必须创建自己的API才能完成这项工作?

Yes it is possible to intergrate direcitons api with map. 是的,可以将direcitons api与地图集成。 There is no need to write your own API. 无需编写自己的API。 You can achieve this very easily. 你可以很容易地实现这一目标。 With Google android api V2 there is no need to draw canvas. 使用Google android api V2,无需绘制画布。 Adding things in it is very easy. 添加内容非常简单。

Please read here for Google Maps https://developers.google.com/maps/documentation/android/start 请在此处阅读Google地图https://developers.google.com/maps/documentation/android/start

and for directions 和方向

https://developers.google.com/maps/documentation/directions/ https://developers.google.com/maps/documentation/directions/

During the process you have any specific problem then please ask that. 在此过程中您有任何具体问题,请询问。

Thanks, 谢谢,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM