Packagecom.esri.bao.tasks.stdgeographies
Classpublic class ReturnStdGeographyParameters
InheritanceReturnStdGeographyParameters Inheritance BAUtilityParameters Inheritance BABaseParameters Inheritance Object

The ReturnStdGeographyParameters class provides input parameters for the Return Standard Geography task.

The geoLevelIDs parameter specifies IDs of the standard geography levels to search geography features in.

The location point can be specified in one of three ways—by postal address, by geographic coordinates, and by ZIP code. All these ways are mutually exclusive.

The address parameter specifies postal address fields.

The coordinates array contains geographic coordinates of the point (latitude and longitude).

The ZIP parameter specifies the location ZIP code. The centroid point of the given ZIP is used.

View the examples

See also

ReturnStdGeographyTask


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BAUtilityParameters
  address : Array
Postal address fields of the location requested.
ReturnStdGeographyParameters
  coordinates : Array
Geographic coordinates of the location requested.
ReturnStdGeographyParameters
  geoLevelIDs : Array
Array containing IDs of standard geography levels to find geography features in (required).
ReturnStdGeographyParameters
 InheritedresultType : BAResultType
[read-only] Type of a result returned by the task associated with these parameters.
BABaseParameters
 InheritedtaskName : String
[read-only] Name of a Business Analyst Server task associated with these parameters.
BABaseParameters
  ZIP : String
ZIP code of the location requested.
ReturnStdGeographyParameters
Public Methods
 MethodDefined By
  
Creates a new instance of the ReturnStdGeographyParameters class.
ReturnStdGeographyParameters
Property Detail
addressproperty
address:Array

Postal address fields of the location requested. This array should contain fields of the postal address, for example

["380 New York St.", "Redlands", "CA"]


Implementation
    public function get address():Array
    public function set address(value:Array):void
coordinatesproperty 
coordinates:Array

Geographic coordinates of the location requested. This array should contain two numeric values specifying first the longitude (x) coordinate and then the latitude (y) coordinate of point.


Implementation
    public function get coordinates():Array
    public function set coordinates(value:Array):void
geoLevelIDsproperty 
geoLevelIDs:Array

Array containing IDs of standard geography levels to find geography features in (required). The list of available geography levels could be retrieved with the Get Standard Geography Levels task. This array should contain items of the String type.


Implementation
    public function get geoLevelIDs():Array
    public function set geoLevelIDs(value:Array):void

See also

ZIPproperty 
ZIP:String

ZIP code of the location requested. The centroid point of the requested ZIP area is used.


Implementation
    public function get ZIP():String
    public function set ZIP(value:String):void
Constructor Detail
ReturnStdGeographyParameters()Constructor
public function ReturnStdGeographyParameters()

Creates a new instance of the ReturnStdGeographyParameters class.

Examples
ActionScript to create ReturnStdGeographyParameters and then use in the ReturnStdGeographyTask:
                     
     var parameters : ReturnStdGeographyParameters = new ReturnStdGeographyParameters();
     
     // Multiple standard geography layers can be specified in this array.
     parameters.geoLevelIDs = ["US.Counties","US.States"];
     
     // One and only one of the three locations need be specified - address, coordinates or zip. 
     parameters.address = ["380 New York St.", "Redlands", "CA"];
     //parameters.coordinates = [mapPoint.x, mapPoint.y]; 
     //parameters.ZIP = "92373";
     
     returnStdGeographyTask.execute(parameters, new Responder(resultHandler, faultHandler));