Android google route using 3 points (Source point, destination point and via point)

雨燕双飞 提交于 2019-12-11 11:44:31

问题


I am using google map to display route between two points . Now in my application i want to draw route in map using source point , destination point and via point.Please help me in this. Any help would be appreciated.

Thanks in Advance


回答1:


Check this:

Answer : Draw path between two points using Google Maps Android API v2

But modify makeURL method to use

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

makeURL(double sourceLat, double sourceLng, double viaLat, double viaLng, double DestLat, double DestLng);
drawPath(result);


来源:https://stackoverflow.com/questions/15469942/android-google-route-using-3-points-source-point-destination-point-and-via-poi

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