View Single Post

  #2 (permalink)  
Old 01-09-2005
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

I dont know if this is what you looking for but the collection returned from FindAddressResults has a property named ResultsQuality. It can have following values:
Code:
    public enum GeoFindResultsQuality
    {
        geoAllResultsValid = 0,
        geoFirstResultGood = 1,
        geoAmbiguousResults = 2,
        geoNoGoodResult = 3,
        geoNoResults = 4,
    }
Another possible is that you look for a specific object type in the collection because it can contain different types. For example if you onle need to find the Location objects you can do something like this:
Code:
            foreach (object o in Results) {
                Location Loc = o as Location;

                if (Loc != null) {
                    //here you go
                }
            }
or you can combine the 2 and first check if the ResultsQuality <= geoAmbiguousResults and then loop with the foreach();
Reply With Quote