<?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: Directions from two points in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495257#M12710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw the download but wondering if anyone had examples in .net not javascript&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2011 18:27:48 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2011-09-30T18:27:48Z</dc:date>
    <item>
      <title>Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495256#M12709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking at a sample online of an app that takes and address and shows the user that location as well as the another location (polling location).....I can do this in my app....but what my app is not doing is showing the directions, distance and Total drive time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localgovtemplates2.esri.com/ElectionPollingPlace/default.htm"&gt;http://localgovtemplates2.esri.com/ElectionPollingPlace/default.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you do this...are there any examples out there that show this functionality....I can do everythign else but would be most appeciative if you could point me in the direction of some exampels to return directions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance...have a great weekend&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 15:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495256#M12709</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-09-30T15:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495257#M12710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw the download but wondering if anyone had examples in .net not javascript&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 18:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495257#M12710</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-09-30T18:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495258#M12711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a sdk sample that show how to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RoutingDirections"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RoutingDirections&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 23:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495258#M12711</guid>
      <dc:creator>ChristopherHill</dc:creator>
      <dc:date>2011-09-30T23:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495259#M12712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;THanks Christopher....actually found that just a bit ago....thanks for your responce....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 12:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495259#M12712</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-10-03T12:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495260#M12713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any thoughts....I am using this example and CANNOT get the start and endpoint symbols to show up...I can get the route to show up fine....but not the points...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;confused here....&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RoutingDirections"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RoutingDirections&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The graphics layer exists in my map...can a graphics layer have point and lines in it?&amp;nbsp; The example online has the points and lines beign assigned to the same graphics layer "MyRouteGraphicsLayer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally I had to add code to the SYMBOL in the routeTask_SolveCompleted Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;WAS THIS: not working&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer.Graphics.Add(New Graphic() With {.Geometry = _directionsFeatureSet.MergedGeometry, .Symbol = RouteSymbol})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;CHANGED TO THIS: now working&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer.Graphics.Add(New Graphic() With {.Geometry = _directionsFeatureSet.MergedGeometry, .Symbol = LayoutRoot.Resources("RouteSymbol")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But still dont understand why I cant see the start and end graphics......thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 14:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495260#M12713</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-10-03T14:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495261#M12714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any thoughts why I cant get the start and end point to show up....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I place points and lines in the same graphic layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 16:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495261#M12714</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-10-04T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495262#M12715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;Can I place points and lines in the same graphic layer? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, you can. This &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RoutingDirections"&gt;sample&lt;/A&gt;&lt;SPAN&gt; is exactly doing what you are looking for. Please look at it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;why I cant get the start and end point to show up....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Without any info, I can just guess that you have a marker symbol issue as it seems you had with your route symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check with the debugger that your symbol is not null (and is a markersymbol).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 08:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495262#M12715</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-10-05T08:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495263#M12716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what I have.....is the syntax incorrect on the graphic symbol?&amp;nbsp; I know that it can see the Marker symbols as it is drawing the line symbol right below it...it has to be syntax&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for yoru thoughts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicLocation.Symbol = TryCast(LayoutRoot.Resources("FromSymbol"), Symbols.Symbol)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;XAMl&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid x:Name="LayoutRoot" Background="{StaticResource BaseColor}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid.Resources&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- NEW DIRECTIONS STUFF --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol x:Key="FromSymbol" Size="15" Style="Circle" Color="#9900FF00" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol x:Key="ToSymbol" Size="15" Style="Circle" Color="#99FF0000" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleLineSymbol x:Key="RouteSymbol" Color="#990000FF" Width="5"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleLineSymbol x:Key="SegmentSymbol" Color="#99FF0000" Width="8"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- END DIRECTIONS STUFF --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried usign other defualt marker symbols that I am usign elsewhere..nothing....but am returning the line...hmmmm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 18:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495263#M12716</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-10-05T18:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495264#M12717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Funny I messagebox a count and I am getting 11....dosent seem right...well maybe the geocoder is grabbing 11 and then grabbing the first with this: Dim address As AddressCandidate = e.Results(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Private Sub locator_AddressToLocationsCompleted(ByVal sender As Object, ByVal e As AddressToLocationsEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim graphicsLayer As GraphicsLayer = (TryCast(MyMap.Layers("MyRouteGraphicsLayer"), GraphicsLayer))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; If e.Results.Count &amp;gt; 0 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim address As AddressCandidate = e.Results(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim graphicLocation As New Graphic() With {.Geometry = address.Location}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; graphicLocation.Attributes.Add("address", address.Address)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; graphicLocation.Attributes.Add("score", address.Score)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; _stops.Add(graphicLocation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt; MessageBox.Show("Count")&lt;BR /&gt; MessageBox.Show(e.Results.Count)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; If CStr(e.UserState) Is "from" Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MessageBox.Show("From")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; graphicLocation.Symbol = TryCast(LayoutRoot.Resources("FromSymbol"), Symbols.Symbol)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'graphicLocation.Symbol = TryCast(LayoutRoot.Resources("DefaultMarkerSymbol"), Symbols.Symbol)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'Geocode to address&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; _locator.AddressToLocationsAsync(ParseAddress(ToTextBox.Text), "to")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then tried to eliminate the If then by doign this....and still nothing....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim graphicLocation As New Graphic() With {.Geometry = address.Location, .Symbol = LayoutRoot.Resources("FromSymbol")}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 18:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495264#M12717</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-10-05T18:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Directions from two points</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495265#M12718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At least you guys have a result set working with. Me? I am trying to find a service that returns directions for the counrty of Jamaica. Is there such a serive available? I know services exists for North America and Europe, but is there a worldwide service or something like that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 14:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/directions-from-two-points/m-p/495265#M12718</guid>
      <dc:creator>HoudiniSutherland</dc:creator>
      <dc:date>2011-10-06T14:27:27Z</dc:date>
    </item>
  </channel>
</rss>

