PropertyMaps Corporate Blog

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.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

12 Comments so far

  1. Dave Malach 2007 May 10th 11:00 am

    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

  2. beetle 2007 May 14th 3:04 pm

    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.

  3. Valerie 2007 June 19th 9:57 am

    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!

  4. beetle 2007 June 19th 12:12 pm

    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.

  5. Ryan Martin 2007 August 24th 9:34 am

    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?

  6. mark 2007 September 5th 2:15 pm

    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?

  7. beetle 2007 September 5th 4:36 pm

    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.

  8. Mike 2007 October 26th 10:00 am

    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

  9. Silence7 2008 April 23rd 7:51 pm

    Any chance of you releasing this? There are a lot of people who would find this very useful, Including myself.

  10. Silence7 2008 April 24th 4:47 pm

    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.

  11. Chris Latko 2008 April 25th 9:09 am

    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.

  12. Silence7 2008 May 1st 5:54 pm

    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

Leave a reply