<?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 task methods question in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locator-task-methods-question/m-p/17933#M1674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to establish if there is something wrong with the setup of my locator service or if this is how the functionality is intended to be. And if it's intended, if there may be a chance to modify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First up we have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;addressToLocations&lt;/STRONG&gt;&lt;SPAN&gt;: Returns an array of best candidates which are scored. 1:n ratio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
{"spatialReference":{"wkid":32149,"latestWkid":32149},
"candidates":[
{"address":"216A42","location":{"x":0.0,"y":0.0},"score":100,"attributes":{"Score":100,"Match_addr":"216A42","Name":"216A42","Type":"STRUCTURE","City":"","State":"","Country":"","Ref_ID":"2252","Addr_type":"Address"}},
{"address":"216A42E","location":{"x":0.0,"y":0.0},"score":81.25,"attributes":{"Score":81.25,"Match_addr":"216A42E","Name":"216A42E","Type":"STRUCTURE","City":"","State":"","Country":"","Ref_ID":"154","Addr_type":"Address"}}]}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then we have &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;addressesToLocations&lt;/STRONG&gt;&lt;SPAN&gt;: This allows user to submit an array an objects that have the address to locate. However, on the return of this function, it looks like it only returns the highest scored match for each address. By a 1:1 ratio. Is there a technical reason why this only returns 1 match per address instead of all matches like how addressToLocations works? Here is an example result with certain info removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
dojo.io.script.jsonp_dojoIoScript5._jsonpCallback(
{"spatialReference":{"wkid":0,"latestWkid":0},
"locations":[{"address":"FED","location":{"x":0.0,"y":0.0},"score":100,"attributes":{"ResultID":-1,"Status":"M","Score":100,"Match_addr":"FED","Ref_ID":"2309","Addr_type":"Address"}},
{"address":"2261STEVENS","location":{"x":0.0,"y":0.0},"score":94.230000000000004,"attributes":{"ResultID":-1,"Status":"M","Score":94.230000000000004,"Match_addr":"2261STEVENS","Ref_ID":"2227","Addr_type":"Address"}},
{"address":"105B","location":{"x":0.0,"y":0.0},"score":100,"attributes":{"ResultID":-1,"Status":"M","Score":100,"Match_addr":"105B","Ref_ID":"2284","Addr_type":"Address"}}]});
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 03:57:49 GMT</pubDate>
    <dc:creator>DuncanNisbett</dc:creator>
    <dc:date>2014-05-21T03:57:49Z</dc:date>
    <item>
      <title>Locator task methods question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locator-task-methods-question/m-p/17933#M1674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to establish if there is something wrong with the setup of my locator service or if this is how the functionality is intended to be. And if it's intended, if there may be a chance to modify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First up we have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;addressToLocations&lt;/STRONG&gt;&lt;SPAN&gt;: Returns an array of best candidates which are scored. 1:n ratio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
{"spatialReference":{"wkid":32149,"latestWkid":32149},
"candidates":[
{"address":"216A42","location":{"x":0.0,"y":0.0},"score":100,"attributes":{"Score":100,"Match_addr":"216A42","Name":"216A42","Type":"STRUCTURE","City":"","State":"","Country":"","Ref_ID":"2252","Addr_type":"Address"}},
{"address":"216A42E","location":{"x":0.0,"y":0.0},"score":81.25,"attributes":{"Score":81.25,"Match_addr":"216A42E","Name":"216A42E","Type":"STRUCTURE","City":"","State":"","Country":"","Ref_ID":"154","Addr_type":"Address"}}]}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then we have &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;addressesToLocations&lt;/STRONG&gt;&lt;SPAN&gt;: This allows user to submit an array an objects that have the address to locate. However, on the return of this function, it looks like it only returns the highest scored match for each address. By a 1:1 ratio. Is there a technical reason why this only returns 1 match per address instead of all matches like how addressToLocations works? Here is an example result with certain info removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
dojo.io.script.jsonp_dojoIoScript5._jsonpCallback(
{"spatialReference":{"wkid":0,"latestWkid":0},
"locations":[{"address":"FED","location":{"x":0.0,"y":0.0},"score":100,"attributes":{"ResultID":-1,"Status":"M","Score":100,"Match_addr":"FED","Ref_ID":"2309","Addr_type":"Address"}},
{"address":"2261STEVENS","location":{"x":0.0,"y":0.0},"score":94.230000000000004,"attributes":{"ResultID":-1,"Status":"M","Score":94.230000000000004,"Match_addr":"2261STEVENS","Ref_ID":"2227","Addr_type":"Address"}},
{"address":"105B","location":{"x":0.0,"y":0.0},"score":100,"attributes":{"ResultID":-1,"Status":"M","Score":100,"Match_addr":"105B","Ref_ID":"2284","Addr_type":"Address"}}]});
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 03:57:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locator-task-methods-question/m-p/17933#M1674</guid>
      <dc:creator>DuncanNisbett</dc:creator>
      <dc:date>2014-05-21T03:57:49Z</dc:date>
    </item>
  </channel>
</rss>

