我的客户保存了一张标有多个兴趣点的公共Google地图。我需要以某种方式提取这些坐标并将它们放入iPhone Google地图中。我应该如何获取每个点的经度和纬度?
我的客户保存了一张标有多个兴趣点的公共Google地图。我需要以某种方式提取这些坐标并将它们放入iPhone Google地图中。我应该如何获取每个点的经度和纬度?
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>Directions to Scone, NSW</name>
<description><![CDATA[]]></description>
<NetworkLink>
<name>Directions to Scone, NSW</name>
<Link>
<href>http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=1&jsv=262a&oe=UTF8&msa=0&msid=109115301202341389527.00048cf92603b4141b1cf&output=kml</href>
</Link>
</NetworkLink>
</Document>
</kml>
将href元素中所有转义的&
替换为&
,并在浏览器中请求URL。这将给您所需的KML:
http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=1&jsv=262a&oe=UTF8&msa=0&msid=109115301202341389527.00048cf92603b4141b1cf&output=kml