本文介绍了在Google地图v3 API上绘制区域多边形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Google地图中绘制复杂的区域边界多边形。有没有办法轻松访问区域数据来绘制这些多边形?这些地区将是澳大利亚邮政编码区。如果你在google中输入邮政编码(不是地图正常搜索),例如2454到谷歌,第一个结果是带有区域多边形的图像(也许这个搜索只适用于你从澳大利亚搜索)。我假设这个数据是可以访问的,因为谷歌正在绘制多边形。

I need to draw complex regional bounding polygons in google maps. Is there a way to easily access regional data to draw these polygons? The regions will be australian postcode areas. If you type a post code into google (not maps normal search) such as "2454" into google the first result is an image with the regional polygon (perhaps this search only works if your searching from australia). Im assuming this data is accessible as google is drawing the polygon.

任何想法我将如何访问此边界数据?

any idea how i would access this bounds data?

我即时讨论的一个例子就是这里

an example of what im talking about is here


http://maps.google.com.au/maps?pq=australian+postcode+2454&hl=en&cp=0&gs_id=2&xhr=t&q=2454&safe=off&gs_upl=&bav=on.2,or.r_gc.r_pw.r_cp.,cf.osb&biw=1876&bih=872&um=1&ie=UTF-8&hq=&hnear=0x6b9e9f724b020f8d:0x1c0609b7ccd310d0,New+South+Wales+2454&gl=au&ei=a3MoT66iKoKuiQelk7m3Ag&sa=X&oi=geocode_result&ct=title&resnum=2&sqi=2&ved=0CDIQ8gEwAQ

推荐答案

目前此数据无法通过Google地图API提供。您需要找到边界数据的第三方供应商。快速查询显示,尽管我是不知道他们是否在任何地方免费提供。获取数据后,可能采用GIS数据格式,例如Shapefile或KML文件。可以将这些文件加载​​到Google Fusion Tables中,也可以使用Google Maps API KMLLayer直接加载KML文件。

This data isn't available through the Google Maps API at this time. You would need to find a 3rd party provider of the boundary data. A quick query shows several providers of the data, though I'm not sure if they're provided anywhere for free. Once you get the data, it's probably in a GIS data format, such as a Shapefile or a KML file. These can be loaded into Google Fusion Tables or KML files can be loaded directly using a Google Maps API KMLLayer.

这篇关于在Google地图v3 API上绘制区域多边形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 21:34