<?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 Is it possible to sort a list of Lat/Lon coordinates by distance? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-sort-a-list-of-Lat-Lon-coordinates-by-distance/m-p/300577#M111267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah a classic! The travelling salesperson problem. I wouldn't recommend QV as the best environment to solve it, but it can be useful as a tool to play around with the route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for distance between longtitude and latitude, most accurate is if you look up actual traveling distances/times, as this can deviate a lot from 'fly-distance'. But if you want to estimate distance when actual distance is not known, you can take a look at the Haversine formula.'You typically create a matrix containing all distances between all points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visiting the nearest neighbour on every visit is easy to implement, but is known to sometimes give efficient and sometimes very inefficient routes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gl Jeroen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2011 08:08:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-19T08:08:56Z</dc:date>
    <item>
      <title>Is it possible to sort a list of Lat/Lon coordinates by distance?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-sort-a-list-of-Lat-Lon-coordinates-by-distance/m-p/300576#M111266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;I am planning&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;routes&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;so that&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;one&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;person can&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;make the journey&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;between various points&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;by taking the&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;shortest possible time.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;Thanks, and hope you can help me.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 07:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-sort-a-list-of-Lat-Lon-coordinates-by-distance/m-p/300576#M111266</guid>
      <dc:creator />
      <dc:date>2011-06-19T07:29:48Z</dc:date>
    </item>
    <item>
      <title>Is it possible to sort a list of Lat/Lon coordinates by distance?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-sort-a-list-of-Lat-Lon-coordinates-by-distance/m-p/300577#M111267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah a classic! The travelling salesperson problem. I wouldn't recommend QV as the best environment to solve it, but it can be useful as a tool to play around with the route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for distance between longtitude and latitude, most accurate is if you look up actual traveling distances/times, as this can deviate a lot from 'fly-distance'. But if you want to estimate distance when actual distance is not known, you can take a look at the Haversine formula.'You typically create a matrix containing all distances between all points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visiting the nearest neighbour on every visit is easy to implement, but is known to sometimes give efficient and sometimes very inefficient routes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gl Jeroen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 08:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-sort-a-list-of-Lat-Lon-coordinates-by-distance/m-p/300577#M111267</guid>
      <dc:creator />
      <dc:date>2011-06-19T08:08:56Z</dc:date>
    </item>
    <item>
      <title>Is it possible to sort a list of Lat/Lon coordinates by distance?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-sort-a-list-of-Lat-Lon-coordinates-by-distance/m-p/300578#M111268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply, i see it is as hard as i imagined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 08:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-sort-a-list-of-Lat-Lon-coordinates-by-distance/m-p/300578#M111268</guid>
      <dc:creator />
      <dc:date>2011-06-19T08:34:37Z</dc:date>
    </item>
  </channel>
</rss>

