County Polylines on Google Maps
Here is a simple mashup of census.gov data with Google Maps API 2.57 plotting county polylines for any given valid zip code. Take a look at http://www.propertymaps.com/maps/polylines.php. There is no restriction on the number of hits/second on this so have at it. Also, the polyline XML files are available for download for any given zip code. If you would like to see more functionality added to this, leave a comment.
Update: Map is now clickable.
12 Comments so far
Leave a reply



I’d like to add your zip code boundary feature to my google map.
I’m a relative newbie to google’s mapping (I’ve worked mostly with ESRI before), so could I ask you to please provide an example of how someone would integrate your zip boundary feature into their own map??
Thanks - Dave
Hi Dave,
The javascript for this application is not obfuscated, so you should be able to review the code to get an idea of how it is done. The original boundary data came from the Census Bureau’s Tiger/Line data. Once I have more time, I can probably put together an example for you, but that will not be for a couple weeks.
I am having trouble using this function. I’m using Internet Explorer, and enter a zip code, and Explorer freezes. Any clue what might be going on?
Thanks — if I can get it to work for me, I think this function would be incredibly helpful!
Valerie,
The Polyline map is working again. In the transition to the new site design, a class that powered this app fell through the cracks.
I’d like to add your zip code boundary feature to my google map as well - are you making this available? If so, can you send me details?
I would also like to put this in my google maps. How did you get all of those lines put into your database? The census file i found only shows 1 set of latitute and longitude points?
This can all be done by extracting the boundary info from the Census TIGER/line data (http://www.census.gov/geo/www/tiger/), can’t go into much more detail at this time. Sorry.
Hello,
Could you please make the source code for this script available for download? I think many people would like to get their hands on it.
Thanks so much,
Mike
Any chance of you releasing this? There are a lot of people who would find this very useful, Including myself.
Are you going to be releasing the code to do this. There are a ton of people who either have an immediate need, or would just love to see how it’s done. Including me.
Thanks.
Hi All,
We have the new Tiger/Line2007fe shape files which includes over 60 million points. We will be doing line smoothing on this data, then will release the source code. We expect to have this on the blog within the week. Thanks for your patience.
Thank you Chris, hopefully I’ll be able to implement it on Google’s “My Maps” Unfortunately they only allow 10mb worth of KML data to be loaded. But we do have an API key floating around here somewhere.
Found an article that might help me bypass the limit here.
Using XSL to Transform Google Earth (KML) and GPX to Google Maps API
http://cse-mjmcl.cse.bris.ac.uk/blog/2005/07/26/1122414882406.html