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.
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.
Publish message containing the location body to the esri_geocode_input
channel.
{ "text": "380 New York St, Redlands, CA" }
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 } }] } }
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.