FindResults.Results Property
FindResults.Results Property
The zero-based array of found results (FindResult[] objects).
Public Results As FindResult()
[C#]
public FindResult[] Results;
Remarks
The results in the array are ordered by score; that is by how well the result matches the search criteria or how close the result is to the search point. The results of the FindServiceSoap.Find, FindServiceSoap.FindAddress and FindServiceSoap.FindByProperty methods are returned in decreasing order of score, and the results of the FindServiceSoap.FindNearby and FindServiceSoap.FindNearRoute method are returned in increasing order of score.
If you are using the FindPolygon method, the returned results are not ordered by score because all found polygons have a score of 1.0.
Example
[Visual Basic]
'Output the returned find results
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"
Dim foundResults As FindResults
foundResults = findService.Find(findSpec)
Dim fr As FindResult
For Each fr In foundResults.Results
Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
Next
[C#]
//Output the returned find results
FindSpecification findSpec = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";
FindResults foundResults;
foundResults = findService.Find(findSpec);
foreach(FindResult fr in foundResults.Results)
{
Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}
See Also
FindResults Class | FindResult Class | FindServiceSoap Class