External APIs

Esri: Geoenrichment

Add demographic, spending, business, and lifestyle data to maps and apps
Back to BLOCKS

About Esri: Geoenrichment

Esri, the global market leader in geographic information system (GIS) software, offers the most powerful mapping and spatial analytics technology available.

The Esri Geoenrichment Service can be used to query and display information from a large collection of enhanced demographic data sets including population, income, housing, consumer behavior, and the natural environment. To see the data sets available check out the data browser.

Try it Now
Categories:
External APIs External APIs
Charting & Graphing
Charting & Graphing
Geolocation
Geolocation
Financial
Financial
Last Updated:
20170320 at 09:00:00
Author:
PubNub
Geoenrichment

Walkthrough

The block requires one single string: a geolocation coordinate, which returns the attributes for total population, median household income, and median age. There are many other analysis variables or data collections you can use to define the data attributes. From within the block, the Geoenrichment service is called and the response is sent back to the client. To learn more about Esri's Geoenrichment service visit the ArcGIS for Developer site. And, go here to sign-up for an ArcGIS Developer Program.

Input

Public message containing the location coordinate to the esri_geoenrichment_input channel.
{
    "lat":  37.761,
    "lon": -122.437
} 

Output

The block appends the Esri Geoenrichment service analysis result into the message payload. Please refer to the Esri documentation for service properties or the Data Browser for information on fields.

{ 
    "lat": 37.761, 
    "lon": -122.437, 
    "data": { 
        "totalPopulation": 86098, 
        "medianHouseholdIncome": 99558, 
        "medianAge": 38.3 
    } 
}

Similar BLOCKS

Esri: Geocoding Convert addresses to location, and vice versa. Charting & Graphing BLOCKS Details Subcategory Geolocation BLOCKS Details Subcategory Financial BLOCKS Details Subcategory

Try PubNub Today

Connect up to 100 devices for Free