<?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 Geocoding addresses with an Locator that does NOT return Points in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geocoding-addresses-with-an-locator-that-does-not/m-p/133895#M587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing some code to use ArcGIS locators to geocode some addresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this working correctly for Locators that return Point geometries using the AddressToLocations method, this works for single line and multi line addresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if a Locator that returns Polylines is used this method throws an error saying "Invalid Geometry", this seems to be because the results are expected to have a Point geometry in them but because I am using a Locator that returns Polylines the geometry can't be passed into the result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found a way to get around this for Polyline locators by using the FindAddresses method, it seems to work in a similar way to the AddressToLocations method except that it does not throw an error for the Polyline geometry, it just returns a null geometry, you can see the attributes in the singlLine image attached, note the X and Y are empty because the geometry is not a point. But there is an issue with this method too, multiline addresses do not seem to work with the FindAddress method, or at least not correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The candidates that come back from the multiline addresses when using FindAddresses seem to be empty, I would have expected that there would be no candidates if it could not find any features that matched, this can be seen in the multiline image. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just as an example I have attached a screenshot called inputs that show the values that are passed into AddressToLocations (for a point locator) or FindAddresses (for a polyline locator). These work correctly when used for a multiline search with the point locator but they do not work for multi line serching with the Polyline locator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my main questions are: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should an empty candidate be returned if no matching addresses are found?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to geocode addresses using the Runtime SDK for WPF for a locator that does not return Point geometries and that works for both Single and Multi line searches?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31283[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31284[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31285[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 12:14:58 GMT</pubDate>
    <dc:creator>AnthonyKeogh1</dc:creator>
    <dc:date>2014-02-10T12:14:58Z</dc:date>
    <item>
      <title>Geocoding addresses with an Locator that does NOT return Points</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geocoding-addresses-with-an-locator-that-does-not/m-p/133895#M587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing some code to use ArcGIS locators to geocode some addresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this working correctly for Locators that return Point geometries using the AddressToLocations method, this works for single line and multi line addresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if a Locator that returns Polylines is used this method throws an error saying "Invalid Geometry", this seems to be because the results are expected to have a Point geometry in them but because I am using a Locator that returns Polylines the geometry can't be passed into the result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found a way to get around this for Polyline locators by using the FindAddresses method, it seems to work in a similar way to the AddressToLocations method except that it does not throw an error for the Polyline geometry, it just returns a null geometry, you can see the attributes in the singlLine image attached, note the X and Y are empty because the geometry is not a point. But there is an issue with this method too, multiline addresses do not seem to work with the FindAddress method, or at least not correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The candidates that come back from the multiline addresses when using FindAddresses seem to be empty, I would have expected that there would be no candidates if it could not find any features that matched, this can be seen in the multiline image. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just as an example I have attached a screenshot called inputs that show the values that are passed into AddressToLocations (for a point locator) or FindAddresses (for a polyline locator). These work correctly when used for a multiline search with the point locator but they do not work for multi line serching with the Polyline locator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my main questions are: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should an empty candidate be returned if no matching addresses are found?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to geocode addresses using the Runtime SDK for WPF for a locator that does not return Point geometries and that works for both Single and Multi line searches?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31283[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31284[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31285[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 12:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geocoding-addresses-with-an-locator-that-does-not/m-p/133895#M587</guid>
      <dc:creator>AnthonyKeogh1</dc:creator>
      <dc:date>2014-02-10T12:14:58Z</dc:date>
    </item>
  </channel>
</rss>

