FindAddressSpecification.Options Property

FindAddressSpecification.Options Property

The search options (FindOptions object), which may include the range of results, the threshold score of results returned, and a flag to identify which objects are desired in the returned results.


Public Options As FindOptions

[C#]
public FindOptions Options; 

Remarks

Example

[Visual Basic]

'Return all results for this input address
Dim myAddress As New Address()
myAddress.AddressLine = "1 Microsoft Way"
myAddress.PrimaryCity = "Redmond"
myAddress.Subdivision = "WA"
myAddress.PostalCode = "98052"
myAddress.CountryRegion = "US"

Dim findAddressSpec As New FindAddressSpecification()
findAddressSpec.InputAddress = myAddress
findAddressSpec.DataSourceName = "MapPoint.NA"
findAddressSpec.Options = New FindOptions()
findAddressSpec.Options.ThresholdScore = 0

Dim foundAddressResults As FindResults
foundAddressResults = findService.FindAddress(findAddressSpec)
Dim fr As FindResult
For Each fr In foundAddressResults.Results
 Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
Next



[C#]

//Return all results for this input address
Address myAddress =  new Address();
myAddress.AddressLine = "1 Microsoft Way";
myAddress.PrimaryCity = "Redmond";
myAddress.Subdivision = "WA";
myAddress.PostalCode = "98052";
myAddress.CountryRegion = "US";

FindAddressSpecification findAddressSpec = new FindAddressSpecification();
findAddressSpec.InputAddress = myAddress;
findAddressSpec.DataSourceName = "MapPoint.NA";
findAddressSpec.Options = new FindOptions();
findAddressSpec.Options.ThresholdScore = 0;

FindResults foundAddressResults;
foundAddressResults = findService.FindAddress(findAddressSpec);
foreach(FindResult fr in foundAddressResults.Results)
{
 Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}


See Also

  FindAddressSpecification Class   |   FindOptions Class   |   FindServiceSoap.FindAddress Method