listFeatures

Information about the listFeatures API method.

 

NOTE: This is an Enterprise Feature, it is only available for users who have purchased our Complete Solution Plan.

Purpose

List feature(s) in a dataset by passing a layerMetaId (dataset id) and criteria matching the feature(s) to be listed/queried.

Request URL

GET https://maps.espatial.com/esWebAPI/rest/v1b/feature/layermeta/{LAYER_META_ID}?criteria={CRITERIA}

GET https://maps.espatial.com/esWebAPI/rest/v1b/feature/layermeta/179995?criteria={"$type":"Equal","attr":"COMPANY_ID","value":"7897564"}

Response

HTTP Response body will contain an array of feature(s) matching the criteria. A maximum of 500 can be returned and more specific criteria should be used to narrow down or paginate results if required.

[
  {
    "id": 4,
    "sourceId": 5044,
    "attrs": {
      "attrSet": [
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 36,
          "name": "CONTACT",
          "title": "Contact"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 40,
          "name": "COMPANY",
          "title": "Company"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 40,
          "name": "COMPANY_ID",
          "title": "Company ID"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 58,
          "name": "ADDRESS",
          "title": "Address"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 32,
          "name": "CITY",
          "title": "City"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 40,
          "name": "COUNTY",
          "title": "County"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 28,
          "name": "STATE",
          "title": "State"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 20,
          "name": "ZIP",
          "title": "ZIP"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 24,
          "name": "PHONE",
          "title": "Phone"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 42,
          "name": "EMAIL",
          "title": "Email"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 40,
          "name": "WEB",
          "title": "Web"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 22,
          "name": "STATUS",
          "title": "Status"
        },
        {
          "attrType": "INTEGER",
          "internal": false,
          "maxSize": 0,
          "name": "VALUE",
          "title": "Value"
        },
        {
          "attrType": "INTEGER",
          "internal": false,
          "maxSize": 0,
          "name": "PROBABILITY",
          "title": "Probability"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 30,
          "name": "OWNER",
          "title": "Owner"
        },
        {
          "attrType": "BOOLEAN",
          "internal": false,
          "maxSize": 1,
          "name": "INVOICED",
          "title": "Invoiced"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 20,
          "name": "AREA",
          "title": "Area"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 86,
          "name": "LINKEDIN",
          "title": "LinkedIn"
        },
        {
          "attrType": "STRING",
          "internal": false,
          "maxSize": 134,
          "name": "NOTES",
          "title": "Notes"
        },
        {
          "attrType": "STRING",
          "internal": true,
          "maxSize": 200,
          "name": "ES_GEOM_STATUS_DETAIL",
          "title": "ES_GEOM_STATUS_DETAIL"
        },
        {
          "attrType": "STRING",
          "internal": true,
          "maxSize": 30,
          "name": "ES_GEOM_STATUS_CODE",
          "title": "ES_GEOM_STATUS_CODE"
        }
      ],
      "values": {
        "ZIP": "72201",
        "CONTACT": "Armando Papik",
        "LINKEDIN": "www.linkedin.com/pub/dir/Armando/Papik",
        "PHONE": "501-376-4154",
        "STATE": "Arkansas",
        "VALUE": 7500,
        "EMAIL": "Armando@Castillo.com",
        "COMPANY": "Castillo Systems",
        "COMPANY_ID": "7897564",
        "INVOICED": false,
        "NOTES": "Click \"Edit\" to add notes",
        "STATUS": "Prospect",
        "PROBABILITY": 25,
        "OWNER": "Kenneth Taylor",
        "AREA": "South",
        "CITY": "Little Rock",
        "WEB": "www.Castillo.com",
        "ADDRESS": "615 W Markham St",
        "ES_GEOM_STATUS_CODE": "OK",
        "COUNTY": "Pulaski",
        "ES_GEOM_STATUS_DETAIL": "PARCEL"
      }
    },
    "geometry": [
      "PT",
      -92.2771466,
      34.748735
    ]
  }
]