Hi,
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;
}