layermeta

Information about the layermeta API method

 

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

Purpose

List or page through user Layers (aka Datasets).

Request URL

GET https://maps.espatial.com/esWebAPI/rest/v1b/layermeta

Request Parameters

Response

[{
    "$type": "DefaultLayerMeta",
    "created": 1433511718531,
    "defaultStyler": {
        "$type": "SingleStyler",
        "style": {
            "$type": "SymbolStyle",
            "color": 4292686388,
            "size": 30,
            "symbolTypeId": 8
        }
    },
    "description": "sample",
    "featureSourceId": 5062,
    "geoLocationMeta": {
        "$type": "AddressGeoLocationMeta",
        "attrNames": [
            "ADDRESS",
            "CITY",
            "COUNTY",
            "STATE",
            "ZIP"
        ],
        "countryCode": "US",
        "region": "United States"
    },
    "geomExportable": false,
    "geomType": "POINT",
    "id": 4062,
    "labelAttr": "COMPANY",
    "lastModified": 1433511718531,
    "maxResolution": 0,
    "minResolution": 0,
    "sourceTenantId": 224310,
    "title": "sample"
}]

Attributes

Purpose

Get definition of dataset attributes

Request URL

GET https://maps.espatial.com/esWebAPI/rest/v1b/layermeta/{layer_meta_id}/attributes

Request Parameters

None

Response

[
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "CONTACT",
        "title": "Contact"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "COMPANY",
        "title": "Company"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 58,
        "name": "ADDRESS",
        "title": "Address"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "CITY",
        "title": "City"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "COUNTY",
        "title": "County"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "STATE",
        "title": "State"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "ZIP",
        "title": "ZIP"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "PHONE",
        "title": "Phone"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "EMAIL",
        "title": "Email"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "WEB",
        "title": "Web"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "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": 50,
        "name": "OWNER",
        "title": "Owner"
    },
    {
        "attrType": "BOOLEAN",
        "internal": false,
        "maxSize": 1,
        "name": "INVOICED",
        "title": "Invoiced"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 50,
        "name": "AREA",
        "title": "Area"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 86,
        "name": "LINKEDIN",
        "title": "LinkedIn"
    },
    {
        "attrType": "STRING",
        "internal": false,
        "maxSize": 134,
        "name": "NOTES",
        "title": "Notes"
    }
]

Info

Purpose

Fetch summary info about the data contained in the layer/dataset.

Request URL

GET https://maps.espatial.com/esWebAPI/rest/v1b/layermeta/info/{layer_meta_id}

Request Parameters

None

Response

{
    "attributeRanges": {
        "INVOICED": {
            "$type": "ValueAttributeRange",
            "name": "INVOICED",
            "values": {
                "0": 56,
                "1": 34
            }
        },
        "STATE": {
            "$type": "ValueAttributeRange",
            "name": "STATE",
            "values": {
                "South Carolina": 1,
                "New Mexico": 2,
                "Alabama": 2,
                "Iowa": 3,
                "Florida": 7,
                "California": 3,
                "New Hampshire": 1,
                "North Dakota": 1,
                "Oregon": 2,
                "Massachusetts": 2,
                "Indiana": 2,
                "Tennessee": 2,
                "Louisiana": 3,
                "Wisconsin": 4,
                "Nevada": 2,
                "Ohio": 2,
                "Idaho": 2,
                "Minnesota": 3,
                "Washington": 4,
                "Virginia": 4,
                "Illinois": 4,
                "Mississippi": 2,
                "Texas": 5,
                "Montana": 1,
                "Wyoming": 3,
                "Oklahoma": 2,
                "New York": 1,
                "Kansas": 1,
                "North Carolina": 2,
                "Arizona": 1,
                "Utah": 1,
                "Georgia": 4,
                "Michigan": 3,
                "New Jersey": 1,
                "Pennsylvania": 3,
                "Colorado": 1,
                "Nebraska": 1,
                "Arkansas": 2
            }
        },
        "AREA": {
            "$type": "ValueAttributeRange",
            "name": "AREA",
            "values": {
                "Northwest": 12,
                "Northeast": 26,
                "Southeast": 20,
                "South": 12,
                "Midwest": 11,
                "Southwest": 9
            }
        },
        "PROBABILITY": {
            "$type": "NumberAttributeRange",
            "max": 75,
            "min": 25,
            "name": "PROBABILITY"
        },
        "VALUE": {
            "$type": "NumberAttributeRange",
            "max": 15000,
            "min": 2500,
            "name": "VALUE"
        },
        "STATUS": {
            "$type": "ValueAttributeRange",
            "name": "STATUS",
            "values": {
                "Opportunity": 34,
                "Prospect": 25,
                "Lead": 31
            }
        },
        "OWNER": {
            "$type": "ValueAttributeRange",
            "name": "OWNER",
            "values": {
                "April Jones": 11,
                "Kenneth Taylor": 12,
                "Michael Lee": 20,
                "Lenny Gregg": 9,
                "Jason Hill": 12,
                "Kimberly Garcia": 26
            }
        },
        "ES_GEOM_STATUS_CODE": {
            "$type": "ValueAttributeRange",
            "name": "ES_GEOM_STATUS_CODE",
            "values": {
                "OK": 90
            }
        },
        "NOTES": {
            "$type": "ValueAttributeRange",
            "name": "NOTES",
            "values": {
                "Should convert to a good opp, visit scheduled.": 1,
                "Follow up questions to be answered ASAP": 1,
                "Arrange site visit. May need transport": 1,
                "Emailed security docs, waiting for follow up": 1,
                "Initial scoping stage. He is going to bring results to senior mngt.": 1,
                "Professional Services to engatge and verify suitablity": 1,
                "Budgeting issues, may push to Q1 next year": 1,
                "Appointment postponed": 1,
                "Going ahead with us. Raising PO his end": 1,
                "Access code for call is 2389457, usual telecon number": 1,
                "Invoice issued today, arrange for delivery and training": 1,
                "Sales and Marketing application, startup but well funded.": 1,
                "Requires further demo with Dept. head.": 1,
                "Pricing looks like a blocker": 1,
                "Looking good. Need to get PO back from client": 1,
                "Need to arrange security docs for IT team": 1,
                "Bridget on 2 weeks holidays, visit on return": 1,
                "Very keen to get moving soon. Large upsale potential": 1,
                "Loves product, investigating with team": 1,
                "Can't locate in database, speak with Adrian and update": 1,
                "W-9 out of date, following up with PA": 1,
                "CALL OR VISIT ASAP": 1,
                "Doesn't have budget right now, exploring options": 1,
                "Call arranged with team, send telecon details": 1,
                "Call today to finalise payment!!": 1,
                "Emails bouncing; update contact details.": 1,
                "Call arranged for Wed": 1,
                "Going well, final meeting with procurement team scheduled": 1,
                "Emailed in asking for quote for 2 year license": 1,
                "Invoice issued last Thurs, payment due net30": 1,
                "Original contact has left the company, needs new demo.": 1,
                "Follow up visit in 2 weeks": 1,
                "Last building on left of street, not easy to find.": 1,
                "Click \"Edit\" to add notes": 49,
                "Looks promising, reccomended by Mike Geary": 1,
                "Last visit should get closure": 1,
                "Meeting with dept.head next month.": 1,
                "Tried to call again and no answer. Sent out email ": 1,
                "Have requested an update from contact.": 1,
                "Breakfast meeting on Tues": 1,
                "Moving from competitor product. Lead time is key, call today!": 1,
                "New contact number, see inbox": 1
            }
        },
        "ES_GEOM_STATUS_DETAIL": {
            "$type": "ValueAttributeRange",
            "name": "ES_GEOM_STATUS_DETAIL",
            "values": {
                "ZIP": 2,
                "PARCEL": 81,
                "CITY": 2,
                "STREET": 5
            }
        }
    },
    "bounds": [
        -122.7105211,
        25.9007141,
        -71.1284041,
        48.0945874
    ],
    "count": 90,
    "created": 1433511718489,
    "id": 5062,
    "lastModified": 1433511718489,
    "vertexCount": 90
}