FRAMES | NO FRAMES

 

B U S I N E S S   A N A L Y S T   10.2   R E S T   L O O K U P   U T I L I T Y

Get Segmentation Levels Endpoint

Gets the list of all available segmentation levels.

 

Availability: Business Analyst Server.

 

URL Example

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/GetSegmentationLevels/execute

Parameters

Parameter

Description

ActiveDatasetID (optional)

ID of the active dataset. Type string.

Default: ID of the first available dataset.

compatibility (optional)

Business Analyst Server version the JSON output is compatible with. Type string.

f (optional)

Response format. Type string. Available formats: HTML, JSON, PJSON, XML.

Default: HTML.

token

Authentication token. This parameter is required if your Business Analyst Server is secured. Type string.

Returns

Array of IDNamePair containing the list of all available segmentation levels. In the case of JSON and PJSON response types, the response format depends on the compatibility parameter value.

Example Usage

The example below requests IDs and names of all segmentation levels which are available in Business Analyst Server core dataset.

 

Request

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/GetSegmentationLevels/execute?f=PJSON

 

Response

{
  "results":
  [
    {
      "paramName":"SegLevels",
      "dataType":"BAIDNamePairs",
      "value":
      [
        {
          "Name":"BlockGroups",
          "ID":"US.BlockGroups"
        },
        {
          "Name":"Counties",
          "ID":"US.Counties"
        },
        {
          "Name":"States",
          "ID":"US.States"
        },
        {
          "Name":"Tracts",
          "ID":"US.Tracts"
        },
        {
          "Name":"ZIP5",
          "ID":"US.ZIP5"
        }
      ]
    }
  ],
  "messages":
  [
  ]
}

 

See Also

Game Plan Map Endpoint

Target Map Endpoint

Target Penetration Map Endpoint

Business Analyst Server REST Reference