Share via


FindResult.Score Property

FindResult.Score Property

The score of the found result.


Public Score As System.Double


[C#]

public System.Double Score;

Remarks

Example

[Visual Basic]

'Iterate through each find result and output it
'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)

Dim constants As New MapPointConstants()

Dim fr As FindResult
For Each fr In foundResults.Results
 If (fr.Score > constants.FindScoreThreshold) Then
  Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
 End If
Next



[C#]

//Iterate through each find result and output it
//if it is a good match
FindSpecification findSpec  = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";

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

MapPointConstants constants  = new MapPointConstants();
foreach(FindResult fr in foundResults.Results)
{
 if (fr.Score > constants.FindScoreThreshold) 
 {
  Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
 }
}


See Also

  FindResult Class   |   FindServiceSoap Class   |   DistanceUnit Enumeration   |   UserInfoFindHeader.DefaultDistanceUnit Property   |   FindOptions.ThresholdScore Property