问题
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