MapPointConstants.FindScoreThreshold Property

MapPointConstants.FindScoreThreshold Property

The lowest score that is considered good for a found result (0.85).


Public FindScoreThreshold As System.Double = 0.85


[C#]

public System.Double FindScoreThreshold;

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

  MapPointConstants Class   |   FindOptions.ThresholdScore Property   |   FindResult.Score Property