WorldLocator Online Geocoding with client http request always return empty candidates

444
2
03-20-2012 05:03 PM
TerrenceLeung
New Contributor
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/findAddre...

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
Tags (2)
0 Kudos
2 Replies
MikeMinami
Esri Notable Contributor
You should be using the services on task.arcgisonline.com... These are our publicly available services. I'm not sure what the other is. But given that it doesn't work...

Thanks,

Mike
0 Kudos
TerrenceLeung
New Contributor
Finally figure out the issue. The WorldLocator service only works with GET, but not POST, while the NA one works with both.

Thanks,
Terrence
0 Kudos