locked
Any way to use a list of zip codes instead of lat/long? RRS feed

  • Question

  • i have a list of something like 1500 zip codes that i want to put on a virtual earth map represented by pushpins.
    the problem i have is that i cant make them all latitudes and longitudes by hand, and so is there anything i can use to just plot the zip codes?

    thanks
    Friday, July 4, 2008 3:09 PM

Answers

  • Push Pins, like any other instace of a VEShape class, use latitude and longitude to plot their locations on a given map.  In order to place a push pin where a zip code resides, you would need to know the lat/long of that zip code.  Zip codes are obviously defined areas who's boundaries consist of several lat/long points, however, they also do have a defined center or centroid (Sorry but I dont know how this center is determined).  The lat/long of that centroid can be used to place a push pin on the map to identify where that zip code resides.

     

    In order to accomplish what you have outlined, you would need a service that could take a given zip code, look up the lat/long information for the centroid and then use that information to plot the push pin.  At least that was the approach that I took in building a similar type map.

     

    There are plenty of vendors out there that can provide this data, but of course, at a nominal cost.  There may be vendors out there that provide this information for free, but I dont know of any off the top of my head.  One that I have used is http://www.zip-codes.com/ . They have a basic version that is relatively cheap that would have the information that you are looking for.

     

    Regards,

     

    Mike Garza

    http://garzilla.net/vemaps

     

    Wednesday, July 9, 2008 1:17 PM
  • Hi,

     

    Rather than using VE to individually geocode the zips and plot them, you can use the Mappoint Web Service which has its own batch geocoder so that you can find the latlongs of the zips beforehand so your app won't need to calculate them on the fly.  I'd recommend batch geocoding your file, parsing them out in your javascript and plotting them as pins on your VE map.

     

    Also note, you'll need at the very minimum to request a developer (trial) account to access the staging MWS batch geocoding service.  You can request one below.

    https://mappoint-css.live.com/mwssignup/Default.aspx?wa=wsignin1.0

     

    More information on the batch geocoding service here:

    http://msdn.microsoft.com/en-us/library/aa491869.aspx

     

    Hope that helps,

    Friday, July 11, 2008 6:07 PM

All replies

  • I don't understad what you need exactly...do you want to geocode the zip codes using VEs Find control? Or are you saying geocoding the zip codes doesn't work?

     

     

    Monday, July 7, 2008 2:17 AM
  • i am saying that i want the zips to have a pushpin displayed over them but i dont know how i can do that.  the only methods ive seen in having pushpins displayed over a point is with latitude/longitude cordinates.  is there a way i can use a list of zip codes as opposed to a list of latitudes and longitudes?
    Monday, July 7, 2008 5:37 PM
  • Push Pins, like any other instace of a VEShape class, use latitude and longitude to plot their locations on a given map.  In order to place a push pin where a zip code resides, you would need to know the lat/long of that zip code.  Zip codes are obviously defined areas who's boundaries consist of several lat/long points, however, they also do have a defined center or centroid (Sorry but I dont know how this center is determined).  The lat/long of that centroid can be used to place a push pin on the map to identify where that zip code resides.

     

    In order to accomplish what you have outlined, you would need a service that could take a given zip code, look up the lat/long information for the centroid and then use that information to plot the push pin.  At least that was the approach that I took in building a similar type map.

     

    There are plenty of vendors out there that can provide this data, but of course, at a nominal cost.  There may be vendors out there that provide this information for free, but I dont know of any off the top of my head.  One that I have used is http://www.zip-codes.com/ . They have a basic version that is relatively cheap that would have the information that you are looking for.

     

    Regards,

     

    Mike Garza

    http://garzilla.net/vemaps

     

    Wednesday, July 9, 2008 1:17 PM
  • Hi,

     

    Rather than using VE to individually geocode the zips and plot them, you can use the Mappoint Web Service which has its own batch geocoder so that you can find the latlongs of the zips beforehand so your app won't need to calculate them on the fly.  I'd recommend batch geocoding your file, parsing them out in your javascript and plotting them as pins on your VE map.

     

    Also note, you'll need at the very minimum to request a developer (trial) account to access the staging MWS batch geocoding service.  You can request one below.

    https://mappoint-css.live.com/mwssignup/Default.aspx?wa=wsignin1.0

     

    More information on the batch geocoding service here:

    http://msdn.microsoft.com/en-us/library/aa491869.aspx

     

    Hope that helps,

    Friday, July 11, 2008 6:07 PM
  • Thanks, Derek.  Also looking to incorporate zip code demographics into my maps in the near future.
    Wednesday, July 30, 2008 4:44 AM