Packagecom.esri.baserver.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.

Along with an individual point location, a point layer can be specified using the points parameter. In this case, features matching to the given locations are combined together and the combined feature ID and Name is returned for a geography level. The ID of a combined feature can be used in the geographyIDs parameter of the StandardLayer and StandardLevelsOfGeographyParameters types.

All the ways for specifying geography locations are mutually exclusive. Only one parameter from address, point, ZIP, and points should be specified and others should be missing.

View the examples

See also

ReturnStdGeographyTask
StandardLayer
StandardLevelsOfGeographyParameters


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BAUtilityParameters
  address : Array
Postal address fields of the location requested.
ReturnStdGeographyParameters
  geoLevelIDs : Array
Array containing IDs of standard geography levels to find geography features in (required).
ReturnStdGeographyParameters
  point : MapPoint
Geographic coordinates of the location requested.
ReturnStdGeographyParameters
  points : PointLayer
Point data layer specifying requested locations.
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
geoLevelIDsproperty 
geoLevelIDs:Array

Array containing IDs of standard geography levels to find geography features in (required). A 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

pointproperty 
point:MapPoint

Geographic coordinates of the location requested.


Implementation
    public function get point():MapPoint
    public function set point(value:MapPoint):void
pointsproperty 
points:PointLayer

Point data layer specifying requested locations.


Implementation
    public function get points():PointLayer
    public function set points(value:PointLayer):void
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 a Return Standard Geography task:
                     
     var parameters : ReturnStdGeographyParameters = new ReturnStdGeographyParameters();
     
     // Set standard geography levels to find geography features in.
     parameters.geoLevelIDs = ["US.Counties"];
     
     // Set address location fields.
     parameters.address = ["8103 Sandy Spring Rd.", "Laurel", "MD", "20707"];
      
     returnStdGeographyTask.execute(parameters, new Responder(resultHandler, faultHandler));