Directions API on Android

怎甘沉沦 提交于 2019-11-29 12:06:28

问题


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?


回答1:


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,



来源:https://stackoverflow.com/questions/15516595/directions-api-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!