<?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 Geocoder suggest endpoint not respecting category parameter in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geocoder-suggest-endpoint-not-respecting-category/m-p/365474#M1740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Attempting to use the GeocodeServer find and suggest endpoints filtered by category. I would like to only show results that are Street Addresses, but the user is able to type in anything, including requests that are not street addresses, but would typically return non-street address results (they are POI's or Street Names or Intersections, etc), as in the workflow below.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;So a web application makes the following request:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;A href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;category=Street%20Address&amp;amp;text=ritten" style="color: #1155cc;" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;category=Street%20Address&amp;amp;text=ritten&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Where category=Street Address and text=ritten and get this response:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: medium;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;suggestions&lt;/SPAN&gt;: &lt;/SPAN&gt;&lt;DIV style="padding-right: 6px; padding-left: 6px;"&gt;[&lt;UL style="list-style-type: none; margin-left: 2em;"&gt;&lt;LI style="margin-left: 15px;"&gt;{&lt;UL style="list-style-type: none; margin-left: 2em;"&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"W Rittenhouse St, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUns8t7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;},&lt;/LI&gt;&lt;LI&gt;{&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"Rittenhouse Sq, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUnsNt7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;},&lt;/LI&gt;&lt;LI&gt;{&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"W Rittenhouse Sq, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUnsbt7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;},&lt;/LI&gt;&lt;LI&gt;{&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"E Rittenhouse St, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUnskt7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;}&lt;/LI&gt;&lt;/UL&gt;]&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: medium;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;None of these results are street addresses, and I would expect this response to contain zero results based on my category filter. Instead they appear to be within the Street Name or POI category. I verified this by making requests to the find service by omitting the category=Street Address parameter:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;A href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?magicKey=GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUns8t7hc0YQWMYcyGnh5LZcp0DFFF&amp;amp;f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;text=W%20Rittenhouse%20St,%20Philadelphia,%20Pennsylvania,%20USA" style="color: #1155cc;" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?magicKey=GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUns8t7hc0YQWMYcyGnh5LZcp0DFFF&amp;amp;f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;text=W%20Rittenhouse%20St,%20Philadelphia,%20Pennsylvania,%20USA&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;This particular example, for the first result in the above suggest request, returns type StreetName.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;If I readd the category=Street Address parameter in the previous find request, I get no results as expected, since this particular item is a Street Name.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Is this expected behavior? If so, how do I properly get these two services to filter properly on only street addresses?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2015 19:49:41 GMT</pubDate>
    <dc:creator>AFink</dc:creator>
    <dc:date>2015-06-08T19:49:41Z</dc:date>
    <item>
      <title>Geocoder suggest endpoint not respecting category parameter</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geocoder-suggest-endpoint-not-respecting-category/m-p/365474#M1740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Attempting to use the GeocodeServer find and suggest endpoints filtered by category. I would like to only show results that are Street Addresses, but the user is able to type in anything, including requests that are not street addresses, but would typically return non-street address results (they are POI's or Street Names or Intersections, etc), as in the workflow below.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;So a web application makes the following request:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;A href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;category=Street%20Address&amp;amp;text=ritten" style="color: #1155cc;" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;category=Street%20Address&amp;amp;text=ritten&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Where category=Street Address and text=ritten and get this response:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: medium;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;suggestions&lt;/SPAN&gt;: &lt;/SPAN&gt;&lt;DIV style="padding-right: 6px; padding-left: 6px;"&gt;[&lt;UL style="list-style-type: none; margin-left: 2em;"&gt;&lt;LI style="margin-left: 15px;"&gt;{&lt;UL style="list-style-type: none; margin-left: 2em;"&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"W Rittenhouse St, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUns8t7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;},&lt;/LI&gt;&lt;LI&gt;{&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"Rittenhouse Sq, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUnsNt7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;},&lt;/LI&gt;&lt;LI&gt;{&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"W Rittenhouse Sq, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUnsbt7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;},&lt;/LI&gt;&lt;LI&gt;{&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;text&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"E Rittenhouse St, Philadelphia, Pennsylvania, USA"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;magicKey&lt;/SPAN&gt;: &lt;SPAN style="color: green;"&gt;"GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUnskt7hc0YQWMYcyGnh5LZcp0DFFF"&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="padding: 1px 2px;"&gt;&lt;SPAN style="font-weight: bold;"&gt;isCollection&lt;/SPAN&gt;: &lt;SPAN style="color: #b22222;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;}&lt;/LI&gt;&lt;/UL&gt;]&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: medium;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;None of these results are street addresses, and I would expect this response to contain zero results based on my category filter. Instead they appear to be within the Street Name or POI category. I verified this by making requests to the find service by omitting the category=Street Address parameter:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;A href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?magicKey=GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUns8t7hc0YQWMYcyGnh5LZcp0DFFF&amp;amp;f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;text=W%20Rittenhouse%20St,%20Philadelphia,%20Pennsylvania,%20USA" style="color: #1155cc;" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?magicKey=GST7YMc0AM9UOsE3GY8tIS9GOghnYnwZGZpkJiyzCP9_JR52GZbtGSyJAnyUns8t7hc0YQWMYcyGnh5LZcp0DFFF&amp;amp;f=pjson&amp;amp;searchExtent=-75.291411,39.869314,-74.945342,40.148059&amp;amp;text=W%20Rittenhouse%20St,%20Philadelphia,%20Pennsylvania,%20USA&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;This particular example, for the first result in the above suggest request, returns type StreetName.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;If I readd the category=Street Address parameter in the previous find request, I get no results as expected, since this particular item is a Street Name.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Is this expected behavior? If so, how do I properly get these two services to filter properly on only street addresses?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 19:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geocoder-suggest-endpoint-not-respecting-category/m-p/365474#M1740</guid>
      <dc:creator>AFink</dc:creator>
      <dc:date>2015-06-08T19:49:41Z</dc:date>
    </item>
  </channel>
</rss>

