ESRI doesn’t respond if there is any special character in search text.

861
5
05-25-2017 11:46 PM
manishkumar2
New Contributor
  • Description:
  • Searched with a text “#1 boston” with findAddressCandidates api with langCode=EN.
  • ESRI returns error code 403.

 

  • ESRI Call:

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=...

 

Response:

ArcGIS REST Framework

 

Home

Error: Services Directory has been disabled.
Code: 403

0 Kudos
5 Replies
JayantaPoddar
MVP Esteemed Contributor

Error: Services Directory has been disabled.
Code: 403

This error usually comes up when the REST directory is not accessible.

Are you able to make any successful query (even without special characters)?

How are you doing the query?



Think Location
0 Kudos
manishkumar2
New Contributor

Yes, If I remove the special character "#" it works.

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=... 

Response:

"candidates": [   {    "address": "Pho So 1 Boston",    "location": {     "x": -71.043648798999641,     "y": 42.163068841000495    },    "score": 95.5,    "attributes": {     "City": "Randolph",     "Region": "Massachusetts",     "Country": "USA",     "Postal": ""    },    "extent": {     "xmin": -71.048649999999995,     "ymin": 42.158068999999998,     "xmax": -71.038650000000004,     "ymax": 42.168069000000003    }   }  ]
0 Kudos
JayantaPoddar
MVP Esteemed Contributor

That's because there is no address with "#1 Boston" in World Geocode Service. Geocoded Addresses of USA are very precise and organized.

 When I tried "#1 Rajasthan", it returned an address.



Think Location
0 Kudos
manishkumar2
New Contributor

I tried with "#1 Rajasthan". I still got error.

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=... 

Can you share the url, I will try..

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

You are right. It doesn't work on webpage. It worked for me in Geocoding toolbar of ArcMap.

Replacing # with * works on webpage.



Think Location
0 Kudos