FRAMES | NO FRAMES |
Returns business points matching the given search criteria.
Availability: Business Analyst Server 10.0.
TaskResultOutput SelectBusinesses ( SelectBusinessesParameters Parameters );
Parameter | Description |
---|---|
Parameters | Configuration options for analysis. Type SelectBusinessesParameters. |
Variable of type TaskResultOutput whose RecordSet property contains a feature record set containing geometry and attributes of the selected business points.
The example below requests business points whose company name or NAICS/SIC category name contains the "Fireproofing" word. The search is restricted with the given list of address locations.
C# |
// Instantiate the BAServerHelper class to access analysis methods BAServerHelper baServerHelper = new BAServerHelper(); baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter SelectBusinessesParameters parameters = new SelectBusinessesParameters(); parameters.SearchString = "Fireproofing"; parameters.SpatialFilter = new SpatialFilter(); parameters.SpatialFilter.Locations = new string[] { "NY,TONAWANDA,14150", "KY,LOUISVILLE,40204", "WA,SEATTLE,98108" }; TaskResultOutput result = baServerHelper.SelectBusinesses(parameters); RecordSet businessPoints = result.RecordSet; // A point layer with selected business points |