URL | http://baoapi.esri.com/rest/report/ReturnStdGeography |
---|
Get a list of standard geographic area names and IDs which intersect a given point location.
The Return Standard Geography utility service queries standard geography levels for standard geographic features intersecting the given point location. The result of this service is a StdGeographiesArrayOfFeatures object which contains the list of intersecting standard geography features, including their feature IDs. These feature IDs can be used to specify standard geography areas in subsequent operations in an analysis workflow.
The Return Standard Geography service returns a list of intersecting standard geography features for a given point location for one or more standard geography levels using a latitude-longitude coordinate pair, a street address, or the centroid (geographic center) of a ZIP code.
Some applications of Return Standard Geography include the following:
TradeAreas
parameter value in the Benchmark Report service and in the Boundaries
parameter in the Summary Reports service when specifying standard geographic areas such as ZIP codes, U.S. Census tracts, U.S. counties, U.S. Congressional Districts, etc. Additionally, the Summary Reports service can be leveraged to retrieve the polygon FeatureSet representations of standard geography areas so they can be mapped or represented in client applications.
FeatureID
and FeatureName
properties for the respective data layers.
You can provide arguments to the Return Standard Geography utility service as defined in the parameters table below.
Parameter | Details |
---|---|
GeoLevelIDs (Required) |
Description:
A data layer ID to query.
Syntax: Notes: See Get Standard Geography Levels for a list of available geography data. |
Token (Required) |
Description:
A valid REST services token string.
Syntax: Notes: The value associated with the Token parameter is for example purposes only. See Get Token for more information on obtaining a token. |
ActiveDatasetID |
Description:
Specify a dataset to perform Online API tasks or operations.
Default: USA Notes: See the Get Datasets task to dynamically query the available dataset IDs. |
Address |
Description:
The street address of the point as address;city;state;ZIP
Default: null Notes: Known Dependencies: Only one street address is supported for each analysis request. The Address, Coordinates, and ZIP parameters are mutually exclusive. Only one of these may be used to specify the point location in each analysis request. |
Callback |
Description: Wrap the JSON or PJSON response in a named function that can be executed by client-side JavaScript upon receipt.
Default: Notes:
|
Coordinates |
Description:
The geographical coordinates of the point as X;Y
Syntax: Notes: Known Dependencies: Only one coordinate pair is supported for each analysis request. The Address, Coordinates, and ZIP parameters are mutually exclusive. Only one of these may be used to specify the point location in each analysis request. Coordinates are specified in the geographic coordinate system and are specified as longitude;latitude separated by a semicolon with no white space between the elements. The default coordinate system is GCS_WGS_1984 (WKID: 4326). |
f |
Description:
The response format.
Default: HTML
Syntax: |
ZIP |
Description:
The ZIP code of the input point (The center/centroid of the ZIP code will be used).
Default: null Notes: Known Dependencies: Only one ZIP coce is supported for each analysis request. The Address, Coordinates, and ZIP parameters are mutually exclusive. Only one of these may be used to specify the point location in each analysis request. |
Example 1: Lookup the standard geography features in several data layers which intersect the given coordinates (point).
Request Example (1)
Notes: See Get Token for more information on obtaining a token.
Example 2: Lookup the standard geography features in several data layers which intersect the given address (point).
Request Example (2)
Notes: See Get Token for more information on obtaining a token.
White space in the property values may be substituted with the +
character (e.g. "101+Some+Street"). URL encoding also allows the use of %20
in place of spaces.
Example 3: Lookup the standard geography features in several data layers which intersect the given ZIP code centroid (point).
Request Example (3)
Notes: See Get Token for more information on obtaining a token.
JSON Response Syntax
{ "results": [ { "Feature": <StdGeographiesArrayOfFeatures> } ] }
JSON Response Example (1) and (2)
{ "results": [ { "Feature": [ { "FeatureID": "01", "FeatureName": "United States" }, { "FeatureID": "06", "FeatureName": "California" }, { "FeatureID": "06071", "FeatureName": "San Bernardino County" }, { "FeatureID": "06071008100", "FeatureName": "060710081.00" }, { "FeatureID": "92373", "FeatureName": "Redlands" }, { "FeatureID": "060710081002", "FeatureName": "060710081.002" }, { "FeatureID": "40140", "FeatureName": "Riverside-San Bernardino-Ontario, CA Metropolitan Statistical Area" }, { "FeatureID": "803", "FeatureName": "Los Angeles, CA" }, { "FeatureID": "0659962", "FeatureName": "Redlands city" }, { "FeatureID": "0641", "FeatureName": "California - District 41" }, { "FeatureID": "0607192770", "FeatureName": "San Bernardino CCD" } ] } ] }
JSON Response Example (3)
{ "results": [ { "Feature": [ { "FeatureID": "01", "FeatureName": "United States" }, { "FeatureID": "06", "FeatureName": "California" }, { "FeatureID": "06071", "FeatureName": "San Bernardino County" }, { "FeatureID": "06071008500", "FeatureName": "060710085.00" }, { "FeatureID": "92373", "FeatureName": "Redlands" }, { "FeatureID": "060710085004", "FeatureName": "060710085.004" }, { "FeatureID": "40140", "FeatureName": "Riverside-San Bernardino-Ontario, CA Metropolitan Statistical Area" }, { "FeatureID": "803", "FeatureName": "Los Angeles, CA" }, { "FeatureID": "0659962", "FeatureName": "Redlands city" }, { "FeatureID": "0641", "FeatureName": "California - District 41" }, { "FeatureID": "0607192770", "FeatureName": "San Bernardino CCD" } ] } ] }
Standard Geographies from Extent