Community of VE/MapPoint Users and Developers
This is a discussion on FInd center location of ZipCode area using MP ActiveX (MP 2006) within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, How can I obtain the Location object from MP activeX corresponding to the center of the zip code? Actually ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| FInd center location of ZipCode area using MP ActiveX (MP 2006) How can I obtain the Location object from MP activeX corresponding to the center of the zip code? Actually I need to get the Lat/Long for zip area center point. I know how to calculate lat/long from a location object. But I can't see how to obtain the location itself.
__________________ -- Eugene |
| |||
| Re: FInd center location of ZipCode area using MP ActiveX (MP 2006)
Hi, I'm not sure it returns always the real center of the ZIP code because the ZIP area may have irregular form, but this should do it: Code: FindResults results = MP.ActiveMap.FindAddressResults("", "", "", "", zip, country);
if (results.ResultsQuality == GeoFindResultsQuality.geoFirstResultGood) {
object o = 1;
Location loc = (Location) results.get_Item(ref o);
Pushpin p = MP.ActiveMap.AddPushpin(loc, loc.Name);
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| 2006, activex, area, center, find, location, zipcode |
| ||||
| Posted By | For | Type | Date | |
| Using MapPoint and Excel for Supply Chain Management - MapPoint Articles - MP2K Magazine | This thread | Refback | 02-04-2007 10:34 PM | |
| MapPoint Download - MP2K Magazine | This thread | Refback | 02-04-2007 08:07 AM | |
| Determing the Time Zone in MapPoint - MapPoint Articles - MP2K Magazine | This thread | Refback | 02-01-2007 03:09 PM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 01-28-2007 06:40 AM | |
| Map Visitors - Powered by Virtual Earth | This thread | Refback | 01-26-2007 06:27 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find center of a polygon | Anonymous | MapPoint 2006/2009 Discussion | 11 | 05-25-2005 09:54 AM |
| Need a count of occurrences in a zipcode Shaded Area | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-29-2005 04:36 PM |
| Center pushin only if out of viewable area?? | Gianmaria | MapPoint 2006/2009 Discussion | 4 | 03-22-2005 12:06 PM |
| Getting Location Object by only the ZipCode | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2003 04:02 PM |
| Determining Center of a Zipcode | shaistasohail | MapPoint 2006/2009 Discussion | 0 | 10-21-2002 11:13 PM |