<?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: Geocoding Addresses using .NET in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/geocoding-addresses-using-net/m-p/1208532#M59364</link>
    <description>&lt;P&gt;Additionally (or alternately), would anybody be able to point me towards some sample code to use &lt;SPAN&gt;ArcGISRuntime -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LocatorTask. GeocodeAsync()&amp;nbsp;from within an ArcGIS Pro add-in.&amp;nbsp; I found some in a UWP example and whilst I can connect to the inhouse server, it doesn't return any results.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 02:19:54 GMT</pubDate>
    <dc:creator>JR99</dc:creator>
    <dc:date>2022-09-01T02:19:54Z</dc:date>
    <item>
      <title>Geocoding Addresses using .NET</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/geocoding-addresses-using-net/m-p/1208531#M59363</link>
      <description>&lt;P&gt;I'm creating a feature class via .NET code that contains non-geocoded address data.&lt;/P&gt;&lt;P&gt;ArcPy has a function&amp;nbsp;&lt;SPAN&gt;arcpy.geocoding.GeocodeAddresses which allows the geocoding of address data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there somthing similar in the ArcGIS Pro SDK?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm aware of the ArcGISRuntime -&amp;nbsp;&lt;SPAN&gt;LocatorTask. GeocodeAsync() function but I'd prefer to use something inbuilt to the .NET SDK rather than needing to use another package.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I'd also prefer not to have a call the python function from .NET to perform the task.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 02:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/geocoding-addresses-using-net/m-p/1208531#M59363</guid>
      <dc:creator>JR99</dc:creator>
      <dc:date>2022-09-01T02:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding Addresses using .NET</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/geocoding-addresses-using-net/m-p/1208532#M59364</link>
      <description>&lt;P&gt;Additionally (or alternately), would anybody be able to point me towards some sample code to use &lt;SPAN&gt;ArcGISRuntime -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LocatorTask. GeocodeAsync()&amp;nbsp;from within an ArcGIS Pro add-in.&amp;nbsp; I found some in a UWP example and whilst I can connect to the inhouse server, it doesn't return any results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 02:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/geocoding-addresses-using-net/m-p/1208532#M59364</guid>
      <dc:creator>JR99</dc:creator>
      <dc:date>2022-09-01T02:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding Addresses using .NET</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/geocoding-addresses-using-net/m-p/1208541#M59365</link>
      <description>&lt;P&gt;I've managed to find sample code here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/GeocodingTools/SimpleGeocode.cs" target="_blank"&gt;arcgis-pro-sdk-community-samples/SimpleGeocode.cs at master · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;Copyright 2019 Esri&lt;/P&gt;&lt;P&gt;Licensed under the Apache License, Version 2.0 (the "License");&lt;BR /&gt;you may not use this file except in compliance with the License.&lt;BR /&gt;You may obtain a copy of the License at&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank"&gt;https://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unless required by applicable law or agreed to in writing, software&lt;BR /&gt;distributed under the License is distributed on an "AS IS" BASIS,&lt;BR /&gt;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;/P&gt;&lt;P&gt;See the License for the specific language governing permissions and&lt;BR /&gt;limitations under the License.&lt;/P&gt;&lt;P&gt;*/&lt;BR /&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using System.Threading.Tasks;&lt;BR /&gt;using ArcGIS.Desktop.Framework;&lt;BR /&gt;using ArcGIS.Desktop.Framework.Contracts;&lt;BR /&gt;using ArcGIS.Desktop.Mapping;&lt;/P&gt;&lt;P&gt;namespace GeocodingTools&lt;BR /&gt;{&lt;BR /&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// A simple button illustrating how to use the Geocoding API to geocode an address. The results are displayed in a simple messagebox.&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;internal class SimpleGeocode : Button&lt;BR /&gt;{&lt;BR /&gt;protected override async void OnClick()&lt;BR /&gt;{&lt;BR /&gt;string text = "380 New York St, Redlands, CA, 92373, USA";&lt;/P&gt;&lt;P&gt;// geocode&lt;BR /&gt;IEnumerable&amp;lt;ArcGIS.Desktop.Mapping.Geocoding.GeocodeResult&amp;gt; results = await MapView.Active.LocatorManager.GeocodeAsync(text, false, false);&lt;/P&gt;&lt;P&gt;// show results&lt;BR /&gt;string msg = "results : " + results.Count().ToString() + "\r\n";&lt;BR /&gt;foreach (var result in results)&lt;BR /&gt;msg = msg + result.ToString() + "\r\n";&lt;/P&gt;&lt;P&gt;ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(msg, "Geocode Results");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;GeocodeResult object contains a MapPoint object, so I'm expecting I'll be able to add that to the feature class to geocode it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 03:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/geocoding-addresses-using-net/m-p/1208541#M59365</guid>
      <dc:creator>JR99</dc:creator>
      <dc:date>2022-09-01T03:12:00Z</dc:date>
    </item>
  </channel>
</rss>

