<?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 Re: Bug in how the reverseGeocode endpoint handles 'location', or is documentation wrong? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548471#M4859</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/646543"&gt;@RClavero&lt;/a&gt;&amp;nbsp;. Thanks for taking a look at my question.&lt;/P&gt;&lt;P&gt;I reviewed the requests, and I feel pretty good about the syntax. I reran the second one with an exact copy / paste. The browser did its URL encoding with a final URL of&amp;nbsp;&lt;A href="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location={x:%20103.876722,%20y:%201.3330736}" target="_blank"&gt;https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location={x:%20103.876722,%20y:%201.3330736}&lt;/A&gt;. I got the same response http.400 'Error occurred while processing result&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 18:27:22 GMT</pubDate>
    <dc:creator>Trippetoe</dc:creator>
    <dc:date>2024-10-14T18:27:22Z</dc:date>
    <item>
      <title>Bug in how the reverseGeocode endpoint handles 'location', or is documentation wrong?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548167#M4855</link>
      <description>&lt;P&gt;Hi. The documentation for the ArcGIS REST API &lt;A title="reverseGeocode documentation" href="https://developers.arcgis.com/rest/geocode/api-reference/geocoding-reverse-geocode.htm" target="_self"&gt;reverseGeocode&lt;/A&gt; operation says that the `&lt;STRONG&gt;location&lt;/STRONG&gt;` parameter can take one of three forms:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;location=&lt;/SPAN&gt;&lt;SPAN class=""&gt;103.8767227&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;1.3330736&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;location={&lt;/SPAN&gt;&lt;SPAN class=""&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;103.876722&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;1.3330736&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;location={ &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;: 11563503, &lt;SPAN class=""&gt;"y"&lt;/SPAN&gt;: 148410, &lt;SPAN class=""&gt;"spatialReference"&lt;/SPAN&gt;: { &lt;SPAN class=""&gt;"wkid"&lt;/SPAN&gt;: 3857 } }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;In my testing, only the first option works. Option 2 and 3 return 'Error occurred while processing request' with no error message and a description 'http.400'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;For my testing, i'm using the URL from the Examples within the documentation page, and switching out the various options for `&lt;STRONG&gt;location&lt;/STRONG&gt;` and dropping the 'token' parameter. Like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;https:&lt;SPAN class=""&gt;//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&amp;amp;featureTypes=&amp;amp;location=-117.205525,34.038232&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;https:&lt;SPAN class=""&gt;//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&amp;amp;featureTypes=&amp;amp;location=&lt;SPAN class=""&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;103.876722&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;1.3330736&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;https:&lt;SPAN class=""&gt;//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&amp;amp;featureTypes=&amp;amp;location=&lt;SPAN class=""&gt;&lt;SPAN&gt;{ &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;: 11563503, &lt;SPAN class=""&gt;"y"&lt;/SPAN&gt;: 148410, &lt;SPAN class=""&gt;"spatialReference"&lt;/SPAN&gt;: { &lt;SPAN class=""&gt;"wkid"&lt;/SPAN&gt;: 3857 } }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Only the top one is successful. Is the documentation off, or is there a bug in the reverseGeocode endpoint?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Oct 2024 19:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548167#M4855</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2024-10-11T19:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how the reverseGeocode endpoint handles 'location', or is documentation wrong?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548253#M4858</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/339785"&gt;@Trippetoe&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you review if the syntax of your 2nd and 3rd requests match exactly the Esri documentation examples? I seem to see some minor space differences. I'm not sure if those might make a difference, but I would check since you get a &lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400" target="_self"&gt;400 error message&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 14:02:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548253#M4858</guid>
      <dc:creator>RClavero</dc:creator>
      <dc:date>2024-10-12T14:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how the reverseGeocode endpoint handles 'location', or is documentation wrong?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548471#M4859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/646543"&gt;@RClavero&lt;/a&gt;&amp;nbsp;. Thanks for taking a look at my question.&lt;/P&gt;&lt;P&gt;I reviewed the requests, and I feel pretty good about the syntax. I reran the second one with an exact copy / paste. The browser did its URL encoding with a final URL of&amp;nbsp;&lt;A href="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location={x:%20103.876722,%20y:%201.3330736}" target="_blank"&gt;https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location={x:%20103.876722,%20y:%201.3330736}&lt;/A&gt;. I got the same response http.400 'Error occurred while processing result&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 18:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548471#M4859</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2024-10-14T18:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how the reverseGeocode endpoint handles 'location', or is documentation wrong?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548504#M4860</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/339785"&gt;@Trippetoe&lt;/a&gt;, I don't think I will be able to help you further.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, after a quick research, I found three 'somehow relevant' old Esri Community posts that you might want to look at:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/help-geocode-service-error-400-when-using/td-p/539792" target="_self"&gt;1&lt;/A&gt;, &lt;A href="https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-properly-format-geocodeaddresses-post/m-p/5417" target="_self"&gt;2&lt;/A&gt;, and &lt;A href="https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geocoding-api-only-fails-in-java-code/td-p/303110" target="_self"&gt;3&lt;/A&gt;.&amp;nbsp;And I also see that the ArcGIS Geocoding Service was updated &lt;A href="https://www.esri.com/arcgis-blog/products/developers/announcements/arcgis-geocoding-service-september-2024-updates/" target="_self"&gt;in September&lt;/A&gt;; maybe there was some undocumented change?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be curious to know the solution. Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 20:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548504#M4860</guid>
      <dc:creator>RClavero</dc:creator>
      <dc:date>2024-10-14T20:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how the reverseGeocode endpoint handles 'location', or is documentation wrong?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548724#M4862</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/646543"&gt;@RClavero&lt;/a&gt;&amp;nbsp;. The three links you provided were helpful. They sent me down the path of getting to know online URL encoders a bit more than i had known them before. Eventually, i stumbled on an encoded URL that seemed to do the trick (for example, this is the third link in my original post fully encoded):&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&amp;amp;featureTypes=&amp;amp;location=%7B%20%22x%22%3A%2011563503%2C%20%22y%22%3A%20148410%2C%20%22spatialReference%22%3A%20%7B%20%22wkid%22%3A%203857%20%7D%20%7D" target="_blank"&gt;https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?f=pjson&amp;amp;featureTypes=&amp;amp;location=%7B%20%22x%22%3A%2011563503%2C%20%22y%22%3A%20148410%2C%20%22spatialReference%22%3A%20%7B%20%22wkid%22%3A%203857%20%7D%20%7D&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That request got me a valid response from the service. I'm gonna call that a win, and move on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 16:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548724#M4862</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2024-10-15T16:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how the reverseGeocode endpoint handles 'location', or is documentation wrong?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548854#M4863</link>
      <description>&lt;P&gt;I'm glad I could be of some assistance, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/339785"&gt;@Trippetoe&lt;/a&gt;. Thank you for sharing those additional details, too.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 21:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/bug-in-how-the-reversegeocode-endpoint-handles/m-p/1548854#M4863</guid>
      <dc:creator>RClavero</dc:creator>
      <dc:date>2024-10-15T21:21:01Z</dc:date>
    </item>
  </channel>
</rss>

