FRAMES | NO FRAMES
SelectLocations Method

Returns business locations matching the given search criteria.

Availability: Business Analyst Server 10.0.

TaskResultOutput SelectLocations ( 
    SelectLocationsParameters  Parameters 
);

Parameter Description
Parameters Configuration options for analysis. Type SelectLocationsParameters.

Returns

Variable of type TaskResultOutput whose RecordSet property contains records with attributes of business locations selected.

Examples

The example below requests business locations whose State field contains "CA" and City field contains "Red" substrings.

C#
// Instantiate the BAServerHelper class to access analysis methods
BAServerHelper baServerHelper = new BAServerHelper();
baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter
 
SelectLocationsParameters parameters = new SelectLocationsParameters();
 
parameters.GeographyLevelsFilter = new string[] { "CA", "Red", "*" };
 
TaskResultOutput result = baServerHelper.SelectLocations(parameters);
RecordSet locationsTable = result.RecordSet; // A table with selected business locations

See Also