Packagecom.esri.aws.services
Classpublic class StandardGeography

The standard geography of the site area for the report.

View the examples.



Public Properties
 PropertyDefined by
  geographyIDs : Array
The geographic ID for the site.
StandardGeography
  geographyLevel : String
The geographic level at which the data is returned.
StandardGeography
Property detail
geographyIDsproperty
public var geographyIDs:Array

The geographic ID for the site. Required. Use the method getGeographyIDs to get valid values. Array of strings.

geographyLevelproperty 
public var geographyLevel:String

The geographic level at which the data is returned. Required. Valid values are "cbsa", "county", "dma", "place", "state", "tract", or "zip".

Examples
Basic_Report_getStandardGeographyReport
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:awx="http://www.arcwebservices.com/2007/awx"
    pageTitle="Basic Standard Geography Demographic Report"
    implements="mx.rpc.IResponder"
    creationComplete="onComplete()"
    >
    <mx:Script>
        <![CDATA[
            import com.esri.aws.osgi.framework.ServiceTracker;
            import com.esri.aws.services.ReportInfo;
            import com.esri.aws.services.ReportOptions;
            import com.esri.aws.services.StandardGeography;
            import com.esri.aws.services.IReport;
            import com.esri.aws.osgi.framework.IServiceReference;
            import flash.utils.getQualifiedClassName;
            import mx.controls.Alert;
            import mx.rpc.IResponder;

            private var reportTracker:ServiceTracker;
            
            private function onComplete():void
            {
                reportTracker = new ServiceTracker(Framework.getInstance().systemContext, getQualifiedClassName(IReport));
                reportTracker.open()
            }            

            private function getReport():void
            {
                var reportService:IReport = reportTracker.getService() as IReport;
                        
                if(reportService)
                {
                    var stdGeogs:StandardGeography = new StandardGeography;
                    stdGeogs.geographyLevel = 'zip';
                    stdGeogs.geographyIDs = ['92373'];
                    var rOptions:ReportOptions = new ReportOptions;
                    rOptions.dataSource = "ArcWeb:ESRI.TapestryAreaProfile.US";
                    reportService.getStandardGeographyReport([stdGeogs],rOptions,this);
                    m_info.htmlText = "Creating " + rOptions.reportFormat + " report ...";
                }
            }
            public function result(data:Object):void
            {
                var m_report:ReportInfo = ReportInfo(data);
                m_info.htmlText = "Report in " + m_report.reportFormat + " format using the '" + m_report.dataSource
                                + "' data source:<br><u><a href='" + m_report.reportURL + "'>" + m_report.reportURL + "</a></u>";
            }
            public function fault(info:Object):void
            {
                Alert.show(info.toString());
            }
        ]]>
    </mx:Script>
    <awx:Framework id="m_framework" apiKey="[MY-API-KEY]" >
        <awx:ReportActivator/>
    </awx:Framework>
    <mx:Button click="getReport()" label="Click to create a standard geography report" fontSize="14" />
    <mx:Text id="m_info" fontSize="14" text=" "/>
</mx:Application>