Data Streaming & Dashboards
Geolocation
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.
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.
Public message containing the location coordinate to the esri_geoenrichment_input
channel.
{ "lat": 37.761, "lon": -122.437 }
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 } }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.