<?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 Set distance parameter in Geocode operation in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/set-distance-parameter-in-geocode-operation/m-p/565627#M6937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UWP runtime, version 100.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am geocoding an address using Esri.ArcGISRuntime.Tasks.Geocoding.LocatorTask&lt;SPAN style="color: #000066;"&gt;&amp;nbsp;&lt;/SPAN&gt;and would like to adjust the scores of the results using the&amp;nbsp;&lt;EM&gt;location&amp;nbsp;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;distance&amp;nbsp;&lt;/EM&gt;parameters available in &lt;A href="https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm"&gt;Geocode REST API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I cannot see a way that the &lt;EM&gt;distance&lt;/EM&gt; parameter can be set. The parameters class (Esri.ArcGISRuntime.Tasks.Geocoding.GeocodeParameters) contains a&amp;nbsp;&lt;EM&gt;PreferredSearchLocation&lt;/EM&gt; property that will set the&amp;nbsp;&lt;EM&gt;location&lt;/EM&gt; parameter for the request, but it doesn't have a property for setting the distance. Using fiddler to inspect the request, I can see that the distance parameter is set to 50000 by default. This does not appear to be in any of the examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I set the distance parameter of a geocode request when using the LocatorTask?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 15:43:20 GMT</pubDate>
    <dc:creator>Jefften_Have</dc:creator>
    <dc:date>2018-04-05T15:43:20Z</dc:date>
    <item>
      <title>Set distance parameter in Geocode operation</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/set-distance-parameter-in-geocode-operation/m-p/565627#M6937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UWP runtime, version 100.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am geocoding an address using Esri.ArcGISRuntime.Tasks.Geocoding.LocatorTask&lt;SPAN style="color: #000066;"&gt;&amp;nbsp;&lt;/SPAN&gt;and would like to adjust the scores of the results using the&amp;nbsp;&lt;EM&gt;location&amp;nbsp;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;distance&amp;nbsp;&lt;/EM&gt;parameters available in &lt;A href="https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm"&gt;Geocode REST API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I cannot see a way that the &lt;EM&gt;distance&lt;/EM&gt; parameter can be set. The parameters class (Esri.ArcGISRuntime.Tasks.Geocoding.GeocodeParameters) contains a&amp;nbsp;&lt;EM&gt;PreferredSearchLocation&lt;/EM&gt; property that will set the&amp;nbsp;&lt;EM&gt;location&lt;/EM&gt; parameter for the request, but it doesn't have a property for setting the distance. Using fiddler to inspect the request, I can see that the distance parameter is set to 50000 by default. This does not appear to be in any of the examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I set the distance parameter of a geocode request when using the LocatorTask?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/set-distance-parameter-in-geocode-operation/m-p/565627#M6937</guid>
      <dc:creator>Jefften_Have</dc:creator>
      <dc:date>2018-04-05T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set distance parameter in Geocode operation</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/set-distance-parameter-in-geocode-operation/m-p/565628#M6938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see from REST API documentation,&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm" title="https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm"&gt;findAddressCandidates—ArcGIS REST API: World Geocoding Service | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;,&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;"t&lt;/SPAN&gt;he default distance is 50,000 meters; this value is not configurable.".&amp;nbsp;&lt;/SPAN&gt;Also please look at the note where it is mentioned that "&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px 1px 1px; border-style: solid none solid solid; border-color: #efefef initial #efefef #efefef; padding: 0.25rem 0px 0.25rem 0.25rem;"&gt;distance&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter is deprecated and no longer recognized by the service. A default distance of 50,000 meters is now used internally by the service to boost candidate priority for all requests with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px; border-style: solid none; border-color: #efefef initial #efefef initial; margin-bottom: 0px !important; padding: 0.25rem 0px;"&gt;location&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;.&lt;/SPAN&gt;" So it isn't possible to set distance parameter&amp;nbsp;in geocoding operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 02:37:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/set-distance-parameter-in-geocode-operation/m-p/565628#M6938</guid>
      <dc:creator>NagmaYasmin</dc:creator>
      <dc:date>2018-04-06T02:37:17Z</dc:date>
    </item>
  </channel>
</rss>

