Android上的Directions API

hol*_*y11 13 android google-maps google-directions-api google-maps-android-api-2

当我浏览这个博客时,我对在Android上使用Directions API感到困惑.是否可以在地图上集成Directions API?为了更清楚,我正在开发一个应用程序,它将接受来自用户的输入,source以及destinations...采取这些输入我希望显示一个适当的地图,同时描绘了步行和驾驶方向.只是JSON parser (or XML)足以支持我的这个愿望,还有画布可以借鉴......或者我是否必须创建自己的API才能完成这项工作?

Zee*_*rza 8

是的,可以将direcitons api与地图集成.无需编写自己的API.你可以很容易地实现这一目标.使用Google android api V2,无需绘制画布.添加内容非常简单.

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

和方向

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

在此过程中您有任何具体问题,请询问.

谢谢,

  • 从技术上讲,你应该创建自己的API来代理请求,因为API密钥只能使用IP地址限制来保护,如果设备本身就是API,那么你就无法做到这一点.没有它,有人可能会轻易滥用您的API密钥. (7认同)
  • "此服务并非旨在实时响应用户输入,例如"https://developers.google.com/maps/documentation/directions/ (5认同)