<?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 Migrating from 10.2 to 100.2:  LocatorTask.GetInfoAsync() in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/migrating-from-10-2-to-100-2-locatortask/m-p/430191#M5211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm in the process of migrating our code from using 10.2.6 to using 100.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 10.2 code I'm having trouble migrating gets the locator info and queries the&amp;nbsp;LocatorServiceInfo.SingleLineAddressField and LocatorServiceInfo.AddressFields to formulate the input parameters to be passed to&amp;nbsp;GeocodeAsync.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;// In a loop here...&lt;/P&gt;&lt;P&gt;LocatorServiceInfo info = await service.Locator.GetInfoAsync();&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if (info.SingleLineAddressField == null)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;continue;&lt;BR /&gt;inputParameters.Add(info.SingleLineAddressField.FieldName, singleLineAddress);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if (info.AddressFields.Any(f =&amp;gt; f.FieldName == fieldName))&lt;BR /&gt;{...}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 100.2, it appears I would access the LocatorInfo property.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;LocatorInfo info = service.Locator.LocatorInfo;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, LocatorInfo doesn't have &lt;SPAN&gt;SingleLineAddressField&lt;SPAN&gt;&amp;nbsp;or AddressFields properties.&amp;nbsp; I'm guessing SearchAttributes would hold this information, but I'm not sure what the key would be for SingleLineAddressField.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Am I on the right track?&amp;nbsp; If so, how do I access the equivalent value for&amp;nbsp;SingleLineAddressField?&amp;nbsp; If not, what is the correct approach?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2019 19:22:21 GMT</pubDate>
    <dc:creator>CraigStephens1</dc:creator>
    <dc:date>2019-08-29T19:22:21Z</dc:date>
    <item>
      <title>Migrating from 10.2 to 100.2:  LocatorTask.GetInfoAsync()</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/migrating-from-10-2-to-100-2-locatortask/m-p/430191#M5211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm in the process of migrating our code from using 10.2.6 to using 100.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 10.2 code I'm having trouble migrating gets the locator info and queries the&amp;nbsp;LocatorServiceInfo.SingleLineAddressField and LocatorServiceInfo.AddressFields to formulate the input parameters to be passed to&amp;nbsp;GeocodeAsync.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;// In a loop here...&lt;/P&gt;&lt;P&gt;LocatorServiceInfo info = await service.Locator.GetInfoAsync();&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if (info.SingleLineAddressField == null)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;continue;&lt;BR /&gt;inputParameters.Add(info.SingleLineAddressField.FieldName, singleLineAddress);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if (info.AddressFields.Any(f =&amp;gt; f.FieldName == fieldName))&lt;BR /&gt;{...}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 100.2, it appears I would access the LocatorInfo property.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;LocatorInfo info = service.Locator.LocatorInfo;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, LocatorInfo doesn't have &lt;SPAN&gt;SingleLineAddressField&lt;SPAN&gt;&amp;nbsp;or AddressFields properties.&amp;nbsp; I'm guessing SearchAttributes would hold this information, but I'm not sure what the key would be for SingleLineAddressField.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Am I on the right track?&amp;nbsp; If so, how do I access the equivalent value for&amp;nbsp;SingleLineAddressField?&amp;nbsp; If not, what is the correct approach?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 19:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/migrating-from-10-2-to-100-2-locatortask/m-p/430191#M5211</guid>
      <dc:creator>CraigStephens1</dc:creator>
      <dc:date>2019-08-29T19:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from 10.2 to 100.2:  LocatorTask.GetInfoAsync()</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/migrating-from-10-2-to-100-2-locatortask/m-p/430192#M5212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For single line address just use the overload that accepts a string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Geocoding_LocatorTask_GeocodeAsync_8.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Geocoding_LocatorTask_GeocodeAsync_8.htm"&gt;LocatorTask.GeocodeAsync Method (String)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 12:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/migrating-from-10-2-to-100-2-locatortask/m-p/430192#M5212</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-08-30T12:45:47Z</dc:date>
    </item>
  </channel>
</rss>

