FindResults.TopScore Property

FindResults.TopScore Property

A number representing the score (FindResult.Score property) of the first found result in the array of results. Double.


Public TopScore As System.Double


[C#]

public System.Double TopScore;

Remarks

Example

[Visual Basic]

'Output the first find result if it is a good match
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"

Dim foundResults As FindResults
foundResults = findService.Find(findSpec)

If (foundResults.TopScore > 0.9) Then
 Console.WriteLine(foundResults.Results(0).FoundLocation.Entity.DisplayName)
End If



[C#]

//Output the first find result if it is a good match
FindSpecification findSpec  = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";

FindResults foundResults;
foundResults = findService.Find(findSpec);

if (foundResults.TopScore > 0.9) 
{
 Console.WriteLine(foundResults.Results[0].FoundLocation.Entity.DisplayName);
}


See Also

  FindResults Class   |   FindResult.Score Property   |   FindServiceSoap Class