cateleu

WorldLocator Online Geocoding with client http request always return empty candidates

Discussion created by cateleu on Mar 20, 2012
Latest reply on Mar 26, 2012 by cateleu
Hi,

This has puzzled me for weeks.

I'm trying to use the WorldLocator Geocode below with http request written in vb.net code

http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer/findAddressCandidates

It always return empty candidates as such:

{
  "spatialReference" : {
    "wkid" : 4326
  },
  "candidates" : [
  ]
}

If I change the URL to online geocode for NA:
http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/findAddressCandidates

It returns me with correct result. (with request parameters adjusted)

I checked the request parameters they are no different from the one sending from Browser.
Does the WorldLocator Server somehow checking certain parameter like UserAgent?

My code is attached as text.

Thanks in advance,
Terrence

Attachments

Outcomes