AnsweredAssumed Answered

Single line and multiline search with FindAddressCandidates not populate city in some cases

Question asked by roshni.mridha on May 24, 2017

Hi,

1. I'm using the following API , http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=Bangalore&langCode=E… 

I can see the results but the City field is not populated here And also postal code is not there in the response.. I have noticed same thing with Multiline search as well. Anything missing from my side to call the API? We need CIty and postal code. Let me know how to handle this. Here is the response which I get from ESRI:

{    "address": "Bangalore, Karnātaka, India",    "location": {     "x": 77.593686440000511,     "y": 12.971936200000471    },    "score": 100,    "attributes": {     "City": "",     "Region": "Karnātaka",     "Country": "IND",     "Postal": ""    },

2.  When searching using postalcode, using the following API:

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?Address=&Postal=560037&langCode… 

See the response below: City State is not populated:

{  "spatialReference": {   "wkid": 4326,   "latestWkid": 4326  },  "candidates": [   {    "address": "560037",    "location": {     "x": 77.6929203250005,     "y": 12.96380000600044    },    "score": 100,    "attributes": {     "City": "",     "Region": "",     "Country": "IND",     "Postal": "560037"    },    "extent": {     "xmin": 77.666640000000001,     "ymin": 12.941409999999999,     "xmax": 77.718819999999994,     "ymax": 12.98658    }   }  ] }

Outcomes