<?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 WPF .NET Locator Searching Intersections in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/wpf-net-locator-searching-intersections/m-p/548491#M6711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using StreetMap Premium (Mobile Map Package). The Locator/MMPK does support IntersectionLookup, but no matter how I search for the intersection it does not seem to locate it. I have tried [Street Name] &amp;amp; [Other Street Name] as well as [Street Name] / [Other Street Name] with no luck. (Main St &amp;amp; Queen St).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;// Return gracefully if the textbox is empty or the geocoder isn't ready&lt;BR /&gt; if (String.IsNullOrWhiteSpace(enteredText) || geocoder == null) { return; }&lt;/P&gt;&lt;P&gt;SuggestParameters suggestParameters = new SuggestParameters();&lt;BR /&gt; suggestParameters.MaxResults = 15;&lt;BR /&gt;&lt;BR /&gt; // Get suggestions based on the input text&lt;BR /&gt; IReadOnlyList&amp;lt;SuggestResult&amp;gt; suggestions = await geocoder.SuggestAsync(enteredText, suggestParameters);&lt;/P&gt;&lt;P&gt;// Stop gracefully if there are no suggestions&lt;BR /&gt; if (suggestions.Count &amp;lt; 1) { return; }&lt;/P&gt;&lt;P&gt;if (suggestions.Count &amp;gt; 1)&lt;BR /&gt; {&lt;BR /&gt; ListFoundAddresses(suggestions); //Display results to listbox&lt;BR /&gt; }&lt;BR /&gt; // Get the full address for the first suggestion&lt;BR /&gt; SuggestResult firstSuggestion = suggestions.First();&lt;BR /&gt; IReadOnlyList&amp;lt;GeocodeResult&amp;gt; addresses = await geocoder.GeocodeAsync(firstSuggestion.Label);&lt;/P&gt;&lt;P&gt;// Stop gracefully if the geocoder does not return a result&lt;BR /&gt; if (addresses.Count &amp;lt; 1) { return; }&lt;BR /&gt; &lt;BR /&gt; // Place a marker on the map - 1. Create the overlay&lt;BR /&gt; GraphicsOverlay resultOverlay = new GraphicsOverlay();&lt;BR /&gt; // 2. Get the Graphic to display&lt;BR /&gt; MapPoint mp = addresses.First().DisplayLocation;&lt;BR /&gt; Graphic point = await GraphicForPoint(mp);&lt;BR /&gt; // 3. Add the Graphic to the GraphicsOverlay&lt;BR /&gt; //resultOverlay.Graphics.Add(point);&lt;BR /&gt; GraphicsOverlay_Address.Graphics.Add(point);&lt;BR /&gt; // 4. Add the GraphicsOverlay to the MapView&lt;BR /&gt; //MyMapView.GraphicsOverlays.Add(resultOverlay);&lt;/P&gt;&lt;P&gt;// Update the map extent to show the marker&lt;BR /&gt; await MyMapView.SetViewpointGeometryAsync(addresses.First().Extent);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2019 19:39:07 GMT</pubDate>
    <dc:creator>DerekCrocker</dc:creator>
    <dc:date>2019-10-24T19:39:07Z</dc:date>
    <item>
      <title>WPF .NET Locator Searching Intersections</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wpf-net-locator-searching-intersections/m-p/548491#M6711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using StreetMap Premium (Mobile Map Package). The Locator/MMPK does support IntersectionLookup, but no matter how I search for the intersection it does not seem to locate it. I have tried [Street Name] &amp;amp; [Other Street Name] as well as [Street Name] / [Other Street Name] with no luck. (Main St &amp;amp; Queen St).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;// Return gracefully if the textbox is empty or the geocoder isn't ready&lt;BR /&gt; if (String.IsNullOrWhiteSpace(enteredText) || geocoder == null) { return; }&lt;/P&gt;&lt;P&gt;SuggestParameters suggestParameters = new SuggestParameters();&lt;BR /&gt; suggestParameters.MaxResults = 15;&lt;BR /&gt;&lt;BR /&gt; // Get suggestions based on the input text&lt;BR /&gt; IReadOnlyList&amp;lt;SuggestResult&amp;gt; suggestions = await geocoder.SuggestAsync(enteredText, suggestParameters);&lt;/P&gt;&lt;P&gt;// Stop gracefully if there are no suggestions&lt;BR /&gt; if (suggestions.Count &amp;lt; 1) { return; }&lt;/P&gt;&lt;P&gt;if (suggestions.Count &amp;gt; 1)&lt;BR /&gt; {&lt;BR /&gt; ListFoundAddresses(suggestions); //Display results to listbox&lt;BR /&gt; }&lt;BR /&gt; // Get the full address for the first suggestion&lt;BR /&gt; SuggestResult firstSuggestion = suggestions.First();&lt;BR /&gt; IReadOnlyList&amp;lt;GeocodeResult&amp;gt; addresses = await geocoder.GeocodeAsync(firstSuggestion.Label);&lt;/P&gt;&lt;P&gt;// Stop gracefully if the geocoder does not return a result&lt;BR /&gt; if (addresses.Count &amp;lt; 1) { return; }&lt;BR /&gt; &lt;BR /&gt; // Place a marker on the map - 1. Create the overlay&lt;BR /&gt; GraphicsOverlay resultOverlay = new GraphicsOverlay();&lt;BR /&gt; // 2. Get the Graphic to display&lt;BR /&gt; MapPoint mp = addresses.First().DisplayLocation;&lt;BR /&gt; Graphic point = await GraphicForPoint(mp);&lt;BR /&gt; // 3. Add the Graphic to the GraphicsOverlay&lt;BR /&gt; //resultOverlay.Graphics.Add(point);&lt;BR /&gt; GraphicsOverlay_Address.Graphics.Add(point);&lt;BR /&gt; // 4. Add the GraphicsOverlay to the MapView&lt;BR /&gt; //MyMapView.GraphicsOverlays.Add(resultOverlay);&lt;/P&gt;&lt;P&gt;// Update the map extent to show the marker&lt;BR /&gt; await MyMapView.SetViewpointGeometryAsync(addresses.First().Extent);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wpf-net-locator-searching-intersections/m-p/548491#M6711</guid>
      <dc:creator>DerekCrocker</dc:creator>
      <dc:date>2019-10-24T19:39:07Z</dc:date>
    </item>
  </channel>
</rss>

