MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




FInd center location of ZipCode area using MP ActiveX (MP 2006)

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-26-2007
Junior Member
White Belt
 
Join Date: Jan 2007
Posts: 6
FInd center location of ZipCode area using MP ActiveX (MP 2006)

Hello,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-26-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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);
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-26-2007
Junior Member
White Belt
 
Join Date: Jan 2007
Posts: 6
Re: Find center location of ZipCode area using MP ActiveX (MP 2006)

Hi Wilfried,

Thank you very much - I'll try this way.
__________________
--
Eugene
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
2006, activex, area, center, find, location, zipcode


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/find-center-location-zipcode-area-using-mp-activex-mp-2006-a-5621.html

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 12:38 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55