如何通过航点获得KML路线? [英] How to get KML of route with waypoints?

查看:225
本文介绍了如何通过航点获得KML路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的android应用程序的MapView中绘制路线,并且要使用Google Maps的KML输出文件中列出的坐标。



问题是:当我为航线添加航点时,KML文件不包含完整的航线详细信息,仅显示从航点到航点的坐标/方向 示例。如您所见,路线绘制正确并显示所有路线,但 KML输出



一个解决方案提出两个请求,一个用于source-> waypoint,另一个用于waypoint-> destination,但是我想避免如果可能的话。



谢谢。

解决方案

仅在Google地图中直接支持。
请参阅
http:// groups。 google.com/group/kml-support-advanced/browse_thread/thread/1d57c9f0bc879141

http://groups.google.com/group/kml-support-getting-started/msg/e3d15213ac4ae9ed


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.

解决方案

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

这篇关于如何通过航点获得KML路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆