从已保存的Google地图中检索点的坐标 [英] Retrieve co-ordinates of points from a saved google map
问题描述
我的客户保存了一个公开的Google地图,上面标注了几个兴趣点。我需要以某种方式解除这些坐标并将它们放入iPhone谷歌地图。我如何获得经度&这些点的纬度是什么? 您可以按照以下步骤访问我的地图帐户中保存的地点的KML :
转至我的地图并选择条目。点击左侧的编辑按钮。这将在地图右上角显示Google地球中的视图链接。如果这是一个共享地图,那么Google Earth中的视图链接可能已经可用。
点击此链接将下载一个文件,像这样:
<?xml version =1.0encoding =UTF-8?>
< kml xmlns =http://earth.google.com/kml/2.2>
<文件>
< name>前往Scone,NSW&的路线< / name>
< description><![CDATA []]>< / description>
< NetworkLink>
< name>前往Scone,NSW&的路线< / name>
< Link>
将HREF> HTTP://maps.google.com/maps/ms即= UTF8&放大器;放大器; HL = EN&放大器;放大器; VPS = 1&放大器;放大器; JSV = 262A&放大器;放大器; OE = UTF8&安培;安培; MSA = 0&放大器;放大器; MSID = 109115301202341389527.00048cf92603b4141b1cf&放大器;放大器;输出= KML< / HREF>
< / Link>
< / NetworkLink>
< / Document>
< / kml>
将所有转义的& amp;
在href元素的URL中使用&
,并在浏览器中请求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
My client has saved a public Google Map with several points of interest marked on it. I need to somehow lift those co-ordinates and put them in an iPhone Google Map. How would I get the longitude & latitude of each of these points?
You can follow the following steps to access the KML for saved places in a My Maps account:
Go to My Maps and select the entry. Click the edit button on the left. This will expose a View in Google Earth link on the top right of the map. If this is a shared map, then the View in Google Earth link might already be available.
Clicking this link will download a file that looks something like this:
<?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>
Replace all the escaped &
with &
in the URL in the href element and request the URL in the browser. This will give you the KML that you are after:
http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=1&jsv=262a&oe=UTF8&msa=0&msid=109115301202341389527.00048cf92603b4141b1cf&output=kml
这篇关于从已保存的Google地图中检索点的坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!