Zip Code Boundaries Using Google Maps Api

google-maps-api-3

Solution

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.

* FusionTables was discontinued on 3 December 2019.

Problem

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!

Original source