<?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 GEODIST Function - Manual calculation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406192#M279286</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Could you please help if there a SAS code to exactly replicate the GEODIST function?&lt;BR /&gt;I want to calculate the distance using latitudes and longitudes but it should exactly replicate the outcome of GEODIST function for the same input of latitudes and longitudes.&lt;/P&gt;&lt;P&gt;For ex:&lt;BR /&gt;If Distance = geodist(32.5153, -92.1567, 32.53238, -92.07976, 'DM'); is giving 4.6443116482&lt;BR /&gt;I want to calculate it manually to get the same value&amp;nbsp;4.6443116482.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Oct 2017 00:07:53 GMT</pubDate>
    <dc:creator>InnovativeMinds</dc:creator>
    <dc:date>2017-10-21T00:07:53Z</dc:date>
    <item>
      <title>GEODIST Function - Manual calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406192#M279286</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Could you please help if there a SAS code to exactly replicate the GEODIST function?&lt;BR /&gt;I want to calculate the distance using latitudes and longitudes but it should exactly replicate the outcome of GEODIST function for the same input of latitudes and longitudes.&lt;/P&gt;&lt;P&gt;For ex:&lt;BR /&gt;If Distance = geodist(32.5153, -92.1567, 32.53238, -92.07976, 'DM'); is giving 4.6443116482&lt;BR /&gt;I want to calculate it manually to get the same value&amp;nbsp;4.6443116482.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 00:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406192#M279286</guid>
      <dc:creator>InnovativeMinds</dc:creator>
      <dc:date>2017-10-21T00:07:53Z</dc:date>
    </item>
    <item>
      <title>GEODIST function calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406167#M279287</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help if there a SAS code to exactly replicate the GEODIST function?&lt;/P&gt;&lt;P&gt;I want to calculate the distance using latitudes and longitudes but it should exactly replicate the outcome of GEODIST function for the same input of latitudes and longitudes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 21:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406167#M279287</guid>
      <dc:creator>InnovativeMinds</dc:creator>
      <dc:date>2017-10-20T21:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST function calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406169#M279288</link>
      <description>&lt;P&gt;Do you mean manual code? ie&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;( x**2 + y **2 ) ^ 1/2 .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because SAS has a GEODIST function so I'm confused....&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 21:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406169#M279288</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-20T21:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST function calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406172#M279289</link>
      <description>Hi, Yes, I'm looking for manual code not the function.</description>
      <pubDate>Fri, 20 Oct 2017 21:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406172#M279289</guid>
      <dc:creator>InnovativeMinds</dc:creator>
      <dc:date>2017-10-20T21:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST function calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406176#M279290</link>
      <description>&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;If Distance = geodist(32.5153, -92.1567, 32.53238, -92.07976, 'DM'); is giving 4.6443116482&lt;/P&gt;&lt;P&gt;I want to calculate it manually to get the same value&amp;nbsp;4.6443116482.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 22:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406176#M279290</guid>
      <dc:creator>InnovativeMinds</dc:creator>
      <dc:date>2017-10-20T22:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST function calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406178#M279291</link>
      <description>&lt;P&gt;Out of curiousity, why?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 22:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406178#M279291</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-20T22:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST function calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406180#M279292</link>
      <description>&lt;P&gt;I need to work and explain non-SAS user how I'm coming up with that (GEODIST) value.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 22:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406180#M279292</guid>
      <dc:creator>InnovativeMinds</dc:creator>
      <dc:date>2017-10-20T22:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST function calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406193#M279293</link>
      <description>&lt;P&gt;Note that I've merged this into one thread since it's the exact same question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 00:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406193#M279293</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-21T00:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST Function - Manual calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406208#M279294</link>
      <description>&lt;P&gt;This&amp;nbsp;might be more difficult than you expect. SAS doesn't use the simple&amp;nbsp;great circle&amp;nbsp;distance formulas that you can find on Wikipedia. They are calculating the distance on some ellipsoid approximating the shape of the Earth. You can look at the reference that&amp;nbsp;they give here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf" target="_blank"&gt;https://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 04:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406208#M279294</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-10-21T04:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST Function - Manual calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406209#M279295</link>
      <description>&lt;P&gt;Before GEODIST() there was a %geodist macro. You can find it via Google, it's relatively close but not exact to the numbers from GEODIST().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 04:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406209#M279295</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-21T04:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: GEODIST Function - Manual calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406226#M279296</link>
      <description>&lt;P&gt;Thanks, PG. Appreciate the information.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 11:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GEODIST-Function-Manual-calculation/m-p/406226#M279296</guid>
      <dc:creator>InnovativeMinds</dc:creator>
      <dc:date>2017-10-21T11:40:11Z</dc:date>
    </item>
  </channel>
</rss>

