<?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: Simple optimal route application in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56135#M560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Patrick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This product is great. I just want to write a piece of code to get optimal path bw 2 points in the network using a kind of heuristic algorithm. Its for my project in the university.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have one more question. How to get the distance between two junctions in a street network in meter. I've tried several ways but all of them give the same result as using Pythagorean theorem for x, y coordinates of the two Point. This result make no sense when compare with the result from Measure tool in ArcMap. Is there any thing that need to be converted or processed before we can get real distance ? (I want to get the distance using java).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 18:26:11 GMT</pubDate>
    <dc:creator>PhuNguyen3</dc:creator>
    <dc:date>2011-11-17T18:26:11Z</dc:date>
    <item>
      <title>Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56129#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to code a simple application using java that read data from street shapefile, calculate the shortest path between two vertices using an algorithm and display the route in MapBean of my app. What is want is a custom and simple route solver, for algorithm demo purpose only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be simple task but the problem is that I am new with ArcGIS, and new with geographic field too. So I found many difficults in implementing the demo. I think the trouble is how to determine the adjacent edges of a vertex in the network. Is there any kind of junction connectivity table stored in shapefile&amp;nbsp; and how to read these data, using java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 14:13:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56129#M554</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-11-07T14:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56130#M555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A road dataset such as in shapefile format does not store any adjaceny (network topology information) with it. In fact there are no junctions. A road line feature class contains only roads. The actual road topology needs to be built from a set of rules that govern how roads connect, model bridge, tunnels, turn restrictions, etc. This is what the Network Analyst provides. It contains ways to make a network dataset from input line feature classes. The network dataset contains junctions and connectivity information and that can be queried. Network Analyst also provides the shortest path solver. So is your goal to write the shortest path solver or use an existing one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 21:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56130#M555</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-11-07T21:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56131#M556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, i want to write a new shortest path solver that used an algorithm like A* algorithm. So what I need is the connectivity information of the network, like knowing adjacent vertices of a junction. Do you mean the dataset that I used must contain those information in its attribute table ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I take a look at sample data for network analyst in my ArcGIS dir, it contains road feature class and junction feature class, but in the attribute table of street junction, there is only FID, Shapefile and ZELEV, no information about connectivities. So, how the shortest path solver of NetworkAnalyst obtain those information?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my bad English.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 06:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56131#M556</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-11-08T06:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56132#M557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first part of using a shapefile for routing is to create the connectivity graph. As I explained in my previous post, first part is to create a network dataset that goes along with the shape file and then you can use that to query the adjacencies and write your own algorithm. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how you can create the network dataset:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_network_dataset/00470000000w000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_network_dataset/00470000000w000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have seen the network sample data and you see shapefiles for streets and junctions then there will also be another folder with a .ND extension that contains the adjaceny information in a binary format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can take a look at the INetworkJunction object in this sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/index.html#//0001000004t0000000"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/index.html#//0001000004t0000000&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically once you have a networkjunction then you can call its QueryEdge method to find the adjacengt edges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some more help here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/com/esri/arcgis/geodatabase/inetworkjunction.html"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/com/esri/arcgis/geodatabase/inetworkjunction.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 13:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56132#M557</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-11-08T13:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56133#M558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Jay !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This field is really new to me and I've got stuck by this problem for some days. Thanks alot for your help.:D&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Phu Nguyen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 16:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56133#M558</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-11-08T16:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56134#M559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to further the help that Jay has already given...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of resources to help you code a custom solver.&amp;nbsp; Using .NET, there is some code that uses our API to create a breadth-first solver algorithm &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_programmatically_traverse_a_street_network/00010000023n000000/"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also a custom solver written in C++ that helps determine connectivity within a network &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Custom_Solver/000100000n99000000/"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is always the chance, too, that we provide the functionality that you are looking for, without the use of a custom solver.&amp;nbsp; Are you writing one for the experience?&amp;nbsp; Or are there specific capabilities that we don't provide yet?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56134#M559</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2011-11-09T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56135#M560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Patrick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This product is great. I just want to write a piece of code to get optimal path bw 2 points in the network using a kind of heuristic algorithm. Its for my project in the university.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have one more question. How to get the distance between two junctions in a street network in meter. I've tried several ways but all of them give the same result as using Pythagorean theorem for x, y coordinates of the two Point. This result make no sense when compare with the result from Measure tool in ArcMap. Is there any thing that need to be converted or processed before we can get real distance ? (I want to get the distance using java).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 18:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56135#M560</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-11-17T18:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56136#M561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your kind words.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As to your questions, what network are you using?&amp;nbsp; Does it have a length cost attribute?&amp;nbsp; If so, you can query each edge directly to find out what its cost is using &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/AttributeValueByName_Property/00250000057m000000/"&gt;AttributeValueByName&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; To do this programmatically, follow these steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a edge using &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/CreateNetworkElement_Method/0025000005sz000000/"&gt;INetworkQuery.CreateNetworkElement&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Populate the edge your are interested in using its EID in &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/QueryEdge_Method/0025000005tm000000/"&gt;INetworkQuery.QueryEdge&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then call AttributeValueByName, passing in the name of the length attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the length attribute on your network is not in the right units, and your network is not readonly, you can change the units to the ones you desire.&amp;nbsp; If you network is read-only, then you'll need to do some manual conversion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 19:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56136#M561</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2011-11-17T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56137#M562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I misunderstood your last post.&amp;nbsp; You are looking for distance estimates to use as input to your A* algorithm?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure exactly how the measure tool works, but perhaps the results from there are using geodesic distance around the globe, rather than true straight lines from your pythagorean estimates.&amp;nbsp; That could explain the discrepancy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 20:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56137#M562</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2011-11-17T20:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56138#M563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you just wish to get a straight-line Euclidean distance between two junctions in your street network, then using the Pythagorean theorem for your x/y coordinates is fine. However, keep in mind that the x/y coordinates you are using are based on the dataset's associated coordinate system. Therefore, any "distances" you get from using these coordinates will be based on the units of the coordinate system (which may explain why your values are different than what you are seeing from the measure tool).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to obtain useful distance values using this approach without having to do more complex calculations, I would suggest that you make sure that your dataset is in a projected coordinate system (PCS). You can then figure out the distance-measure-of-choice per unit in your PCS, based on your desired distance measure (e.g., you can determine "meters per unit", "miles per unit", etc.).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then translate the length of the hypotenuse into the appropriate distance measure using this value. However, you should also make sure that any length attribute you are using in the network dataset for your solves is also based on the same unit of measure, for consistency. Additionally, if your impedance attribute is time-based and not length-based, then you would have to further translate this distance into a valid time estimate instead (e.g., using a maximum expected speed limit).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this make sense? Please let us know if you have any further questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 21:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56138#M563</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2011-11-17T21:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56139#M564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My algorithm is an improvement of LPA*, thus, it needs a heuristic estimation like the one of A*. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As Michael said, I look at the coordinate system of my shapefiles, and found out that it is in "GCS_Assumed_Geographic_1". So, i change the Geographic Coordinate System to Projected Coordinate System using Project tool in ArcToolbox. (i changed it to NAD_1983_California_Teale_Albers, pretty uncertain about how they work :D). Is that OK?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that, i re-create my network dataset and check out the distance using Pythagorean theorem. It work ! The result is real distance in meter &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 07:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56139#M564</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-11-18T07:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56140#M565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;(i changed it to NAD_1983_California_Teale_Albers, pretty uncertain about how they work ). Is that OK?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is up to you to decide which projection works best for your particular purposes, as there are certainly many to choose from, and each has their own unique properties. Here are some good resources to become more familiar with projections and their associated properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_are_map_projections/003r00000001000000/"&gt;What are map projections?&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/About_map_projections/003r0000000q000000/"&gt;About map projections&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003r0000000p000000.htm"&gt;What are projected coordinate systems?&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;My inclination would be to suggest that you find a good equidistant projection (e.g., &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003r00000047000000.htm"&gt;see here for an example&lt;/A&gt;&lt;SPAN&gt;), as their purpose is to preserve distances as best as possible, and this is what you are ultimately looking for in your algorithm. However, you must also keep in mind any other purposes you might require for your dataset as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 15:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56140#M565</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2011-11-18T15:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56141#M566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Michael !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to work on the materials.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 16:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56141#M566</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-11-18T16:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56142#M567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have two more questions regard to my problem. They're about GUI implementation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - After running the algorithm and find a shortest route, how can I draw the route on map so that user can easily regconizes that route. I found out piece of code in C#. Can I do the same with Java (I use ArcEngine 9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/RoutingForm/00480000014m000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/RoutingForm/00480000014m000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - How I can let user choose a junction or an edge on a map by visually clicking on those elements (for example, choose the start point)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 19:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56142#M567</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-11-22T19:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56143#M568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are venturing out of my area of expertise, but I'll try to point you in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt; - After running the algorithm and find a shortest route, how can I draw the route on map so that user can easily regconizes that route. I found out piece of code in C#. Can I do the same with Java (I use ArcEngine 9.3)&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/RoutingForm/00480000014m000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/RoutingForm/00480000014m000000/&lt;/A&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To draw the route on the map, you will need to have tracked the edges that you have in your solution.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some code that will help go from an elements EID to getting the source feature underlying it: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_access_source_features_referenced_by_a_network_dataset/00010000036r000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_access_source_features_referenced_by_a_network_dataset/00010000036r000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have your set of source features, it is up to you on how to store it and display it.&amp;nbsp; It is probably more trouble that worth it to set up your work as a custom solver with its own network analysis layer that can be used to display results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, you can take the street features (and optionally, the junctions and turns) and output them as a feature class to a either a workspace on disk (FileGDB, SDE, SHP) or to an in-memory workspace.&amp;nbsp; Then load the feature class as a layer in the table of contents of your map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Look around the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Working_with_feature_data/0001000000t5000000/"&gt;Managing Data part of the SDK&lt;/A&gt;&lt;SPAN&gt; to find a way to manage your results.&amp;nbsp; Not sure this is the best possible way, but in your shoes, I would first look into in-memory workspaces.&amp;nbsp; Then, look into how to display data as layers in the TOC.&amp;nbsp; If this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_add_different_types_of_layers_to_a_map/00010000010w000000/"&gt; link &lt;/A&gt;&lt;SPAN&gt;doesn't get you there, then look around that general area of the SDK for other options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt; - How I can let user choose a junction or an edge on a map by visually clicking on those elements (for example, choose the start point)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have the point on the map where the user clicked, you need to find the nearest network location.&amp;nbsp; A good starting point would be this InArcMap portion of &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_load_data_into_a_network_analysis_problem/00010000023q000000/"&gt;this SDK document&lt;/A&gt;&lt;SPAN&gt; about how to load points in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope all of this helps. Also, note that anything you can do with .NET, you should be able to do with Java, with minor adjustments.&amp;nbsp; That is why I link to the .NET SDK so much.&amp;nbsp; It has a lot more information in it than the Java SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56143#M568</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2011-11-28T15:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Simple optimal route application</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56144#M569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot, Patrick. I have my problems solved with your comments. (try to work out with in-memory Workspace and finally decide to use just a polyline to display the route :D)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My GUI is now functional. But the problem is that it run very slow, in compare with the running time of non-GUI app. For example, to calculate the route, non-GUI app only need ~1s, but the GUI take about 30s to finished :(. Both apps use the same code, same algorithm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give me some advice for speeding up this stuff ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and MERRY CHRISTMAS TO ALL !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Phu Nguyen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 18:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/simple-optimal-route-application/m-p/56144#M569</guid>
      <dc:creator>PhuNguyen3</dc:creator>
      <dc:date>2011-12-22T18:17:41Z</dc:date>
    </item>
  </channel>
</rss>

