官方参考资料地址:(http://lbs.amap.com/api/android-sdk/guide/route-plan/drive/)
官方文档:http://a.amap.com/lbs/static/unzip/Android_Map_Doc/index.html
请注意:使用上述功能需要下载地图SDK,导入搜索功能的jar包。
Activity关键代码:
/*初始化 搜索路线所需的类*/
private void initRouteSearch() {
RouteSearch routeSearch = new RouteSearch(this);
routeSearch.setRouteSearchListener(this);
if (shopLatitude != -