Community of VE/MapPoint Users and Developers
This is a discussion on Need to get a return address from MapPoint within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I use the folowing code to get a MapPoibt.Location from MapPoint, nd it works fine. But I need to ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Need to get a return address from MapPoint I use the folowing code to get a MapPoibt.Location from MapPoint, nd it works fine. But I need to have a loko at the actual address it is returning. I have found a problem in MapPoint 2004, which is my latest version I have. When I attempt to get "256 Pleasant St, Arlington, MA", for example, I get the same location as if I asked for "1 Pleasant St, Arlington, MA". So I decided to have a look at what MapPoint is returning to me. The MapPoint program with the WIndws GUI returns "Pleasant St, Arlington, MA". So I want to be able to examine the address of what's coming back to me. I knw I ned to iterate through results.GetEnumerator() but I'm not sure how. Thanks, Bob MapPoint.Route mpRoute = mpMap.ActiveRoute; MapPoint.FindResults results = mpMap.FindAddressResults( street, city, "", state, "", 244 ); //SetSpeedProfile( handles, mpRoute ); handles.MapPointFindResults = results; if (results.Count >= 1 && results.ResultsQuality == resultsQuality ) { mpRoute = mpMap.ActiveRoute; IEnumerator item = results.GetEnumerator(); item.Reset(); item.MoveNext(); return (MapPoint.Location)item.Current; } |
| |||
|
Hi Bob, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| yes, but
Wilfried, Thanks. Stupid Me! I was using this kind of loop: foreach (MapPoint.Location in results) { } I forgot to unclude the actual variable. C:\Texselogic\Projects\DMS\Trip.cs(293): Type and identifier are both required in a foreach statement Thanks. |
| |||
| Multiple addresses for a given address
Hi, I have a major problem I hope I can find a solution for. I'm going live in a pizza shop next week at the following address: 1000 US 80 Haughton, LA But when I enter the address, it shows me two versions of the address, with 7 miles in between! Please check it out. I never saw this before. I'm using MapPoint 2004. Is this fixed in a later version? If so, I wonder how I could get an update. I have the MSDN subscription for 2004, but I have no funds to update it. That's what this test is all about. Any suggestions? Thanks, Bob |
![]() |
| Tags |
| address, mappoint, return |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Return Pushpin Symbol | Anonymous | MapPoint 2006/2009 Discussion | 1 | 04-27-2005 03:12 PM |
| Return surrounding Zip Codes | johnweidauer | MapPoint 2006/2009 Discussion | 0 | 02-11-2004 05:58 PM |
| Can Mappoint 3.0 SDK return Latitude Longitude coordinates? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-27-2004 06:56 PM |
| newbie wants help in getting mappoint to return coordinates | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-02-2003 03:36 PM |
| When I enter just a zipcode in MapPoint, it return.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-30-2002 09:43 PM |