PDA

View Full Version : help exporting zips from territory



Mike K.
10-15-2013, 04:34 PM
I have searched and searched but cannot figure this out. When we export zips from a territory we notice that small zip codes within other zip codes are not exported. Could someone please explain in easy to understand terms how we can do this. We have purchased a separate zip code list so if there is a way to create some code that we can use to pull the zips from our separate list we can try to build that.

Eric Frost
10-15-2013, 04:47 PM
Hi Mike, welcome to the forums!

This is a very good question. I think MapPoint only includes "zip code equivalent" census areas, which definitely does not include all zip codes (does not include "point" or building zip codes), and is far from current. Zip codes are being added and changed all the time.

Does your separate zip code list include lat/lon's? Assuming so, import all of them as pushpins and then work with that.

Practically everything within MapPoint can be automated, so if there's a big batch job, consider setting it up as a macro.

hope this helps!

Eric

Mike K.
10-16-2013, 05:55 AM
Our time window is very compressed. Can you, or do you know someone who can do the export for a small fee?

dudel
10-16-2013, 06:35 AM
Here is some code that I used to find the many objects associated with a location object. Note that the Alttitude setting will change which items are available.
//////// trap for an item that may not exist
//////try
//////{
////// // each item is a Location type object
////// objLoc = (MapPoint.Location)objFR.get_Item(ref key);
////// // County is found in the geoShowByRegion2 type Location object
////// if (objLoc.Type == MapPoint.GeoShowDataBy.geoShowByRegion2)
////// {
////// AddByCounty(objLoc.Name,ref Counties,ref Count);
////// //t += "x: " + x.ToString() + " Name: " + objLoc.Name + "\r\n";
////// break; // there may be MANY objects associated with the location, so quit when you find the county
////// }
////// //t += "Loc: " + objLoc.Latitude.ToString() + " / " + objLoc.Longitude.ToString() + "\r\n";
//////}
//////catch (Exception ex)
//////{
////// //t += "x: " + x.ToString() + " No data.\r\n";
//////}


This links shows some of the possibilities you can drill into.
GeoShowDataBy values (http://msdn.microsoft.com/en-us/library/aa493407.aspx)

Hope that helps.

Don