FindOptions.ThresholdScore Property

FindOptions.ThresholdScore Property

The score below which results should not be returned. The valid range is 0 through 1 (worst to best).


Public ThresholdScore As System.Double = 0.85


[C#]

public System.Double ThresholdScore;

Remarks

Example

[Visual Basic]

'Return all results
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"
findSpec.Options = New FindOptions()
findSpec.Options.ThresholdScore = 0

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#]

//Return all results
FindSpecification findSpec  = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";
findSpec.Options = new FindOptions();
findSpec.Options.ThresholdScore = 0;

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

foreach(FindResult fr in foundResults.Results)
{
 Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}


See Also

  FindOptions Class   |   MapPointConstants.FindScoreThreshold Property   |   FindResult.Score Property   |   FindNearbySpecification.Options Property