邮政编码边界使用谷歌地图Api [英] Zip Code Boundaries Using Google Maps Api

查看:83
本文介绍了邮政编码边界使用谷歌地图Api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要显示带有邮政编码边界的谷歌地图,例如

http://maps.huge.info/zip.htm



也许我忽略了它,但我没有找到这样的例子,文档专门在Google Maps API文档中讨论这个问题。我试图在上面的网页链接上查看源代码,但它对我来说似乎并不明显。在页面上还有其他的东西,我不知道它是否是我需要或不需要的部分。



一些简单的代码示例会非常有帮助!感谢!

解决方案

Google Maps API不会为您提供这些数据。你需要一个外部来源。 Fusion Table可能会有所帮助。您可以查看这一个



然后,您需要从表格中的KML数据创建自己的图层。有文档



您可以直接从Fusion Table渲染数据或将其导入到您自己的数据库中,这通常更适合于性能。



希望这有助于让您开始。尝试找到自己的方式,如果你被困住了,然后问另一个问题,并向我们展示你的代码,作为第一条评论的建议。


I need to display google map with zip code boundaries like this

http://maps.huge.info/zip.htm

Perhaps I am overlooking it, but I've not been to find examples of this and documentation talking about this specifically at Google Maps API documentation. I've trying doing a view source on the above web page link, but it doesn't seem obvious to me how it works. There is also other stuff on the page which I don't know if it's part of what I need or not.

Some simple code examples would be very helpful! Thanks!

解决方案

Google Maps API will not provide you with this data. You need an external source. A Fusion Table could be of some help. You can check this one.

You then need to create your own layers from the KML data that is in the table. There is documentation about it.

You can render the data directly from the Fusion Table or import it to your own database, which is often preferable for performance.

Hope this helps to get you started. Try to find your way and if you are stuck, then ask another question and show us your code as the first comment suggests.

这篇关于邮政编码边界使用谷歌地图Api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆