<?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: Retain input fields after locator.addressesToLocations in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1316766#M81893</link>
    <description>&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;I am too using JS 4.27 to geocode bunch of addresses via locator.addressesToLocations but promise is giving me the exception&amp;nbsp;"&amp;lt;!DOCTYPE "... is not valid JSON`, need little bit of your help. I am using the following geocode service:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer" target="_blank"&gt;https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If possible please share code.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Aug 2023 08:50:14 GMT</pubDate>
    <dc:creator>AkshayKumar1</dc:creator>
    <dc:date>2023-08-09T08:50:14Z</dc:date>
    <item>
      <title>Retain input fields after locator.addressesToLocations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1314194#M81825</link>
      <description>&lt;P&gt;I am running the addressesToLocation (JavaScript Maps SDK v4.27) method in the locator class and I am hoping to return attributes that were in the original dataset.&amp;nbsp; In the returned AddressCandidates attributes response, the only fields that are returned are the geocoding result fields but no access to the original input fields (e.g., comments, alphanumeric uid, etc.)&amp;nbsp; Is there anyway to access these attributes so they can be accessed for use in a popup, etc.?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1314194#M81825</guid>
      <dc:creator>EricErtl</dc:creator>
      <dc:date>2023-08-01T17:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retain input fields after locator.addressesToLocations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1314280#M81832</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressesToLocations" target="_blank"&gt;locator | API Reference | ArcGIS Maps SDK for JavaScript 4.27 | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try specifying the &lt;FONT face="courier new,courier"&gt;outFields=*&lt;/FONT&gt; in the&amp;nbsp;requestOptions of the params object.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 19:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1314280#M81832</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2023-08-01T19:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retain input fields after locator.addressesToLocations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1314305#M81834</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/191789"&gt;@BlakeTerhune&lt;/a&gt;&amp;nbsp;for the reply.&amp;nbsp; I have tried using both the addressesToLocation (batch) and addressToLocation (single search) and it does not return the input fields (besides the address).&amp;nbsp; The outFields parameter is only available on the addressToLocation method.&amp;nbsp; I uploaded a csv with objectid, address, and comments for ~50 records but nothing in the response returns those fields (example output attributes object below).&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "Status": "M",
    "Score": 100,
    "Match_addr": "1420 McCarthy Blvd, New Bern, North Carolina, 28562",
    "LongLabel": "1420 McCarthy Blvd, New Bern, NC, 28562, USA",
    "ShortLabel": "1420 McCarthy Blvd",
    "Addr_type": "PointAddress",
    "Type": "",
    "PlaceName": "",
    "Place_addr": "1420 McCarthy Blvd, New Bern, North Carolina, 28562",
    "Phone": "",
    "URL": "",
    "Rank": 20,
    "AddBldg": "",
    "AddNum": "1420",
    "AddNumFrom": "",
    "AddNumTo": "",
    "AddRange": "",
    "Side": "",
    "StPreDir": "",
    "StPreType": "",
    "StName": "McCarthy",
    "StType": "Blvd",
    "StDir": "",
    "BldgType": "",
    "BldgName": "",
    "LevelType": "",
    "LevelName": "",
    "UnitType": "",
    "UnitName": "",
    "SubAddr": "",
    "StAddr": "1420 McCarthy Blvd",
    "Block": "",
    "Sector": "",
    "Nbrhd": "",
    "District": "",
    "City": "New Bern",
    "MetroArea": "",
    "Subregion": "Craven County",
    "Region": "North Carolina",
    "RegionAbbr": "NC",
    "Territory": "",
    "Zone": "",
    "Postal": "28562",
    "PostalExt": "2002",
    "Country": "USA",
    "LangCode": "ENG",
    "Distance": 0,
    "X": -77.09495801393672,
    "Y": 35.09757995227644,
    "DisplayX": -77.0941215,
    "DisplayY": 35.09773200000001,
    "Xmin": -77.0951215,
    "Xmax": -77.0931215,
    "Ymin": 35.09673200000001,
    "Ymax": 35.098732000000005,
    "ExInfo": ""
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 20:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1314305#M81834</guid>
      <dc:creator>EricErtl</dc:creator>
      <dc:date>2023-08-01T20:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retain input fields after locator.addressesToLocations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1316766#M81893</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;I am too using JS 4.27 to geocode bunch of addresses via locator.addressesToLocations but promise is giving me the exception&amp;nbsp;"&amp;lt;!DOCTYPE "... is not valid JSON`, need little bit of your help. I am using the following geocode service:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer" target="_blank"&gt;https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If possible please share code.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Aug 2023 08:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retain-input-fields-after-locator/m-p/1316766#M81893</guid>
      <dc:creator>AkshayKumar1</dc:creator>
      <dc:date>2023-08-09T08:50:14Z</dc:date>
    </item>
  </channel>
</rss>

