<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WorldLocator Online Geocoding with client http request always return empty candidates in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/worldlocator-online-geocoding-with-client-http/m-p/329064#M16462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has puzzled me for weeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the WorldLocator Geocode below with http request written in vb.net code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer/findAddressCandidates"&gt;http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer/findAddressCandidates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It always return empty candidates as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "spatialReference" : {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "wkid" : 4326&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "candidates" : [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the URL to online geocode for NA:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/findAddressCandidates"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/findAddressCandidates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It returns me with correct result. (with request parameters adjusted)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the request parameters they are no different from the one sending from Browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the WorldLocator Server somehow checking certain parameter like UserAgent?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is attached as text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Terrence&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 00:03:40 GMT</pubDate>
    <dc:creator>TerrenceLeung</dc:creator>
    <dc:date>2012-03-21T00:03:40Z</dc:date>
    <item>
      <title>WorldLocator Online Geocoding with client http request always return empty candidates</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/worldlocator-online-geocoding-with-client-http/m-p/329064#M16462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has puzzled me for weeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the WorldLocator Geocode below with http request written in vb.net code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer/findAddressCandidates"&gt;http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer/findAddressCandidates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It always return empty candidates as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "spatialReference" : {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "wkid" : 4326&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "candidates" : [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the URL to online geocode for NA:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/findAddressCandidates"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/findAddressCandidates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It returns me with correct result. (with request parameters adjusted)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the request parameters they are no different from the one sending from Browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the WorldLocator Server somehow checking certain parameter like UserAgent?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is attached as text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Terrence&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 00:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/worldlocator-online-geocoding-with-client-http/m-p/329064#M16462</guid>
      <dc:creator>TerrenceLeung</dc:creator>
      <dc:date>2012-03-21T00:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: WorldLocator Online Geocoding with client http request always return empty candid</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/worldlocator-online-geocoding-with-client-http/m-p/329065#M16463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 15:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/worldlocator-online-geocoding-with-client-http/m-p/329065#M16463</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2012-03-21T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: WorldLocator Online Geocoding with client http request always return empty candid</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/worldlocator-online-geocoding-with-client-http/m-p/329066#M16464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally figure out the issue. The WorldLocator service only works with GET, but not POST, while the NA one works with both.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Terrence&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 16:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/worldlocator-online-geocoding-with-client-http/m-p/329066#M16464</guid>
      <dc:creator>TerrenceLeung</dc:creator>
      <dc:date>2012-03-26T16:34:35Z</dc:date>
    </item>
  </channel>
</rss>

