<?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 Locator parameters in js application? in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773353#M85</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an old js application (&lt;A class="link-titled" href="https://maps.tucsonaz.gov/zoombiz/" title="https://maps.tucsonaz.gov/zoombiz/"&gt;https://maps.tucsonaz.gov/zoombiz/&lt;/A&gt;&amp;nbsp;) built from an ESRI template (can't remember which one, it's pretty old)&amp;nbsp;&lt;/P&gt;&lt;P&gt;The locator we wired up got retired, and we need to put in a new one.&amp;nbsp; Simple, mostly.&amp;nbsp; However there are some additional parameters in the Config.js code that I can't quite crack.&lt;/P&gt;&lt;P&gt;Here's the locator we are now wanting to use:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.tucsonaz.gov/public/rest/services/Geocoders/COMPOSITE_LOCATOR_WEB/GeocodeServer" title="https://gis.tucsonaz.gov/public/rest/services/Geocoders/COMPOSITE_LOCATOR_WEB/GeocodeServer"&gt;Geocoders/COMPOSITE_LOCATOR_WEB (GeocodeServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's what we need for the app, in addition to the service URL:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LocatorParameters&lt;/STRONG&gt;: ["SingleKey"], // Set Locator fields (fields to be used for searching).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CandidateFields:&lt;/STRONG&gt; "Score, Match_addr, Addr_type", //Set which fields are returned in results&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DisplayField:&lt;/STRONG&gt; "${Match_addr}", //Set which field from results is displayed&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LocatorFieldName:&lt;/STRONG&gt; 'Addr_type',//The returned field which specifies match type (specific locator within composite)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LocatorFieldValues:&lt;/STRONG&gt; ["Address", "Addr", "Address_1", "Customer_Address"] //List of acceptable individual locators (within composite)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My hunch is that it's the last item - LocatorFieldValues - that's not working with the new locator service, as well as possibly the LocatorParameters (is 'SingleLine' a viable entry there?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips on the configuration, or where to look in the service properties to find this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2018 21:19:16 GMT</pubDate>
    <dc:creator>AllenScully</dc:creator>
    <dc:date>2018-05-15T21:19:16Z</dc:date>
    <item>
      <title>Locator parameters in js application?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773353#M85</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an old js application (&lt;A class="link-titled" href="https://maps.tucsonaz.gov/zoombiz/" title="https://maps.tucsonaz.gov/zoombiz/"&gt;https://maps.tucsonaz.gov/zoombiz/&lt;/A&gt;&amp;nbsp;) built from an ESRI template (can't remember which one, it's pretty old)&amp;nbsp;&lt;/P&gt;&lt;P&gt;The locator we wired up got retired, and we need to put in a new one.&amp;nbsp; Simple, mostly.&amp;nbsp; However there are some additional parameters in the Config.js code that I can't quite crack.&lt;/P&gt;&lt;P&gt;Here's the locator we are now wanting to use:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.tucsonaz.gov/public/rest/services/Geocoders/COMPOSITE_LOCATOR_WEB/GeocodeServer" title="https://gis.tucsonaz.gov/public/rest/services/Geocoders/COMPOSITE_LOCATOR_WEB/GeocodeServer"&gt;Geocoders/COMPOSITE_LOCATOR_WEB (GeocodeServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's what we need for the app, in addition to the service URL:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LocatorParameters&lt;/STRONG&gt;: ["SingleKey"], // Set Locator fields (fields to be used for searching).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CandidateFields:&lt;/STRONG&gt; "Score, Match_addr, Addr_type", //Set which fields are returned in results&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DisplayField:&lt;/STRONG&gt; "${Match_addr}", //Set which field from results is displayed&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LocatorFieldName:&lt;/STRONG&gt; 'Addr_type',//The returned field which specifies match type (specific locator within composite)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LocatorFieldValues:&lt;/STRONG&gt; ["Address", "Addr", "Address_1", "Customer_Address"] //List of acceptable individual locators (within composite)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My hunch is that it's the last item - LocatorFieldValues - that's not working with the new locator service, as well as possibly the LocatorParameters (is 'SingleLine' a viable entry there?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips on the configuration, or where to look in the service properties to find this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 21:19:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773353#M85</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2018-05-15T21:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Locator parameters in js application?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773354#M86</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is what I decipher that you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;LocatorParameters&lt;/STRONG&gt;: ["SingleLine"], // Set Locator fields (fields to be used for searching).&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;CandidateFields:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"Score, Match_Addr, Addr_type, Loc_name", //Set which fields are returned in results&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;DisplayField:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"${Match_Addr}", //Set which field from results is displayed&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;LocatorFieldName:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;'&lt;SPAN&gt;Loc_name&lt;/SPAN&gt;',//The returned field which specifies match type (specific locator within composite)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;LocatorFieldValues:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;["CENTERLINE_COT", "CENTERLINE", "ADCOUNTY_SH", "ADCOUNTY_SFCOT", "ADCOUNTY_SHCOT"] //List of acceptable individual locators (within composite)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 17:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773354#M86</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-16T17:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Locator parameters in js application?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773355#M87</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent - thanks Robert.&amp;nbsp; That worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights into where you looked to get the correct properties - especially the LocatorFieldName and FieldValues?&amp;nbsp; I just poked around the REST service and wasn't able to find the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 18:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773355#M87</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2018-05-16T18:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Locator parameters in js application?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773356#M88</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It was looking for the name of the locator that was used from the composite locator so I looked in the locators attribute fields for the field that returned the locator that was used and found "Loc_Name" and then when I tested an address using the rest endpoint and making sure that "Loc_Name" was an out field I saw the names of the locators that were used in the results and added those to the LocatorFieldValues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 18:35:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773356#M88</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-16T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Locator parameters in js application?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773357#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent - many thanks for taking the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 20:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/locator-parameters-in-js-application/m-p/773357#M89</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2018-05-18T20:12:13Z</dc:date>
    </item>
  </channel>
</rss>

