External APIs

Esri: Geocoding

Convert addresses to location, and vice versa
Back to BLOCKS

About Esri: Geocoding

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

The Esri World Geocoding Service converts an address or place name to latitude and longitude. For example, if you know the address of a business and want to put it on a map, you can use geocoding to find the coordinates.

Try it Now
Categories:
External APIs External APIs
Charting & Graphing
Charting & Graphing
Geolocation
Geolocation
Financial
Financial
Last Updated:
20170302 at 13:25:25
Author:
PubNub
streetnight

Walkthrough

The block requires one single string: the location to send to Esri for geocoding. From within the block, the Geocoding service is called and the response is sent back to the client. To learn more about Esri services and get your own API credentials, visit the ArcGIS for Developers homepage.

Input

Publish message containing the location body to the esri_geocode_input channel.

{
    "text": "380 New York St, Redlands, CA"
}

Output

The block appends the address location returned by the Esri Geocoding service into the message payload. Please refer to the Esri documentation for output field information.
{ 
    "text": "380 New York St, Redlands, CA", 
    "geocode": {
        "spatialReference": {
            "wkid": 4326,
            "latestWkid": 4326
        }, 
        "candidates": [
            {
                "address": "380 New York St, Redlands, California, 92373", 
                "location": { 
                    "x": -117.19566636800778, 
                    "y": 34.05649035814457 
                }

Similar BLOCKS

Esri: Geoenrichment Add demographic, spending, business, and lifestyle data to maps and apps. Charting & Graphing BLOCKS Details Subcategory Geolocation BLOCKS Details Subcategory Financial BLOCKS Details Subcategory

Try PubNub Today

Connect up to 100 devices for Free