1

Right now each row of my data contains two locations i.e. source and destination. Can I show some kind of link eg. a line between these locations within Maps in Fusion Table. I guess I might have to learn KML for that and will have to modify my data. Is their any other way of achieving this?

Thanks!

4

1 回答 1

1

不幸的是,不可能“即时”创建这样的结果,您必须修改数据,例如通过添加基于源和目标的新列。

KML 语法是这样的:

<LineString>
<coordinates> [source.lng],[source.lat] [destination.lng],[destination.lat]</coordinates>
</LineString>

从纽约到芝加哥的线路示例:

<LineString>
<coordinates> -74.0059731,40.7143528 -87.6297981,41.8781136</coordinates>
</LineString>

注意:当您在 KML 中定义坐标时,顺序是longitude,latitude,它与 Maps-API 不同。

于 2013-04-24T00:47:56.980 回答