Google Maps API V3:如何获取区域边界坐标(折线)数据? [英] Google Maps API V3: How to get region border coordinates (polyline) data?
问题描述
我试图从Google地图获取(指定)区域边界作为GMaps坐标(以形成多段线)。这在某种程度上可能吗? (来自maps.google.com或我自己的域名中的GMaps)。
使用专用工具手动绘制/勾勒区域(如 http://www.birdtheme.org/useful /v3tool.html ),但覆盖大范围的准确性是一大堆工作。在这种情况下,绘制自己的答案不是一种选择。
示例:
- https://maps.google.com/ - >输入Uusimaa ,芬兰
- 您可以看到勾勒出想要的区域的粉红色边框
- 该边框是我需要坐标
要求:
- 提取区域数据坐标(如果可用)来自给定的搜索(如示例所示)
- 如果以前是不可能的,则需要源于芬兰Uusimaa地区的精确地图(原始Google搜索没有得到所需结果)。 这个问题正在成为常见问题解答。查看对这些问题的回复:
谷歌已经开始突出粉红色的搜索区域。此功能是否可在Google Maps API 3中使用?
I'm trying to get (specified) region borders as GMaps coordinates (to form a polyline) from Google Maps. Is this possible in some way? (either from maps.google.com or my own GMaps in my own domain).
Note: I know you can draw/outline regions manually with tools intended for it (like http://www.birdtheme.org/useful/v3tool.html), but covering a large region ACCURATELY is a ton of work. The draw-it-yourself answer is not an option in this case.
Example:
- https://maps.google.com/ -> type in "Uusimaa, Finland"
- You can see the pink-ish border that outlines the wanted region
- That border is the polyline that I need the coordinates of
Requirements:
- Extract the region data coordinates (if available) from a given search (as in the example)
- If the previous is not possible, a source to an ACCURATE map of the region "Uusimaa, Finland" is required (plain googling did not yield needed results).
解决方案This is becoming a FAQ. See the replies to these questions:
Add "Search Area" outline onto google maps result
这篇关于Google Maps API V3:如何获取区域边界坐标(折线)数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!