How to get KML of route with waypoints?

人盡茶涼 提交于 2020-01-04 07:14:52

问题


I need to draw routes in my android app's MapView and to do so I'm using the coordinates listed in the KML output file of Google Maps.

The problem is: when I add a waypoint to a route, the KML file doesn't contain the complete route details and only shows the coordinates/directions from the source to the waypoint.

Here is an example. As you can see, the route is drawn correctly and all the directions are shown, but the KML output only has the details from the source to waypoint.

A solution is making two requests, one for source->waypoint and other for waypoint->destination, but I would like to avoid that if possible.

Thanks.


回答1:


Multistep routing is only supported in google maps directly. See http://groups.google.com/group/kml-support-advanced/browse_thread/thread/1d57c9f0bc879141 and http://groups.google.com/group/kml-support-getting-started/msg/e3d15213ac4ae9ed



来源:https://stackoverflow.com/questions/6165741/how-to-get-kml-of-route-with-waypoints

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