<?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: Who's traveling the furthest? in SAS Global Forum 2017</title>
    <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/346297#M403</link>
    <description>&lt;P&gt;I think I might be in with a decent chance at this year's travel prize..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Melbourne to Sydney to San Fancisco to Orlando - total 10,856 miles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was supposed to be 25.5 hours from first departure to last arrival, but the Melb-Syd leg was delayed due to bad weather &amp;amp; I missed the connecting international flight, so was held over in Sydney for 24 hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm actually on the SanFran-Orlando flight right now - if it lands on time then that will make 49.5 hours.. (and only a day and a half to lose the jet lag &amp;amp; adjust the body clock..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I look a little tired Sunday, you'll understand why..&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 19:22:55 GMT</pubDate>
    <dc:creator>AndrewHowell</dc:creator>
    <dc:date>2017-03-31T19:22:55Z</dc:date>
    <item>
      <title>Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345022#M305</link>
      <description>&lt;P&gt;I'm coming from Dallas, Texas - however #SASGF is international - would love to know where you are coming from!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345022#M305</guid>
      <dc:creator>ccarel</dc:creator>
      <dc:date>2017-03-28T15:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345024#M306</link>
      <description>I'm also coming from Dallas, so we'll have to measure distance from the airport to break the tie &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345024#M306</guid>
      <dc:creator>shill</dc:creator>
      <dc:date>2017-03-28T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345031#M309</link>
      <description>&lt;P&gt;I am coming from Ottawa Ontario Canada 1208 miles by plane.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345031#M309</guid>
      <dc:creator>ptimusk</dc:creator>
      <dc:date>2017-03-28T15:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345033#M310</link>
      <description>&lt;P&gt;I'm in the east side of dallas - so a good 30m drive it seems like ona good day to airport, lol.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345033#M310</guid>
      <dc:creator>ccarel</dc:creator>
      <dc:date>2017-03-28T15:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345060#M316</link>
      <description>&lt;P&gt;I'm heading in from Portland, Maine 1212 miles. Can't wait to get some sunshine !&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 16:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345060#M316</guid>
      <dc:creator>agparsons</dc:creator>
      <dc:date>2017-03-28T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345086#M319</link>
      <description>&lt;P&gt;Seattle, so pretty-much clear across the country.....&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 17:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345086#M319</guid>
      <dc:creator>Tomhauge</dc:creator>
      <dc:date>2017-03-28T17:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345090#M320</link>
      <description>On the way to and from Anchorage i will fly through the other Portland (OR) and back through Seattle.  Alaska airlines says it is 4067 miles to Orlando.  More importantly about 9 hours sitting in a plane.</description>
      <pubDate>Tue, 28 Mar 2017 17:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345090#M320</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2017-03-28T17:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345095#M321</link>
      <description>&lt;P&gt;Fellow SGF17-ers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, it's not me because I am simply sliding a sly 780 miles down the East Coast from Washington, DC to Orlando.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS program I used to calculate my tripage:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; gointoorlando;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp; orlando_dist = put(zipcitydistance(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;20850&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;32830&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;),&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;comma.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&amp;nbsp; label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; orlando_dist = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"My Travel Distance from Rockville to Orlando"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noobs&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=gointoorlando &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those of you in the continental US of A might want to consider using this SAS-centric way of measuring&amp;nbsp;your trip distance instead of employing Mr. GoogleMaps.&amp;nbsp; Others&amp;nbsp;might consider using the GEODIST function, which I cover in this SAS Hack that I wrote for the SGF that took place in Seattle:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://michaelraithel.blogspot.com/2016/11/hack-42-calculating-geodetic-distances.html" target="_self"&gt;http://michaelraithel.blogspot.com/2016/11/hack-42-calculating-geodetic-distances.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...and while you are at it, change the unit of measure to Kilometers.&amp;nbsp; Miles; Kilometers; what's a few klicks between friends?!?!?:-)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 17:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345095#M321</guid>
      <dc:creator>MMMIIIIKKKKEEEE</dc:creator>
      <dc:date>2017-03-28T17:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345098#M322</link>
      <description>Germany Cologne......big ride across the pond....&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Mar 2017 17:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345098#M322</guid>
      <dc:creator>cam74</dc:creator>
      <dc:date>2017-03-28T17:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345115#M326</link>
      <description>&lt;P&gt;I'll win if the pilot gets confused and thinks that flying over the north pole will save time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most direct route from Toronto: 1,052 miles.&lt;/P&gt;
&lt;P&gt;Least direct (but still straight line) route: 23,530 miles&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 18:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345115#M326</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-28T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345124#M329</link>
      <description>&lt;P&gt;not me&lt;/P&gt;
&lt;P&gt;from London, UK&lt;/P&gt;
&lt;P&gt;(approx 4,500 miles from home to Swan and Dolfin&amp;nbsp;resort, as calculated by google earth)&lt;/P&gt;
&lt;P&gt;won't be furthest&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345124#M329</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-03-28T19:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345145#M331</link>
      <description>I could try and calculate the travel distance from Amsterdam to The Dolphin but would only make our Metacoda friends from Oz laugh. &lt;BR /&gt;&lt;BR /&gt;- Jan</description>
      <pubDate>Tue, 28 Mar 2017 19:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345145#M331</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2017-03-28T19:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345169#M333</link>
      <description>&lt;P&gt;Funny&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn&lt;/a&gt; - Although, I&amp;nbsp; sleep on the plane so it doesn't seem that long/far... not the case for &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes&lt;/a&gt; who read and watched many movies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thought I'd calculate our Brisbane-Sydney-Dallas-Orlando trip.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Brisbane-Sydney 1.5hr flight -1000km&lt;/LI&gt;
&lt;LI&gt;Sydney-Dallas 15.5hr flight ~13,800km (on the A380 - probably no longer the &lt;A href="http://www.news.com.au/travel/travel-updates/worlds-longest-flight-on-biggest-plane-a380-takes-over-qantas-sydney-dallas-route/news-story/a87586b5a3390a603a047fb949ac6211" target="_self"&gt;longest flight&lt;/A&gt; today)&lt;/LI&gt;
&lt;LI&gt;Dallas-Orlando 2.5hr flight ~1,750km&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Total ~20hrs flight time ~30hrs travel time and ~16,550km/~10,300miles&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A long day considering we left home at 6am Tuesday morning and will arrive at the hotel around 10pm Tuesday night.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#WorthIt!!! &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 20:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345169#M333</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2017-03-28T20:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345232#M337</link>
      <description>&lt;P&gt;not me &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from Beijing, China&amp;nbsp; ~20 hours travel time / 7584 miles&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 02:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345232#M337</guid>
      <dc:creator>hzshao</dc:creator>
      <dc:date>2017-03-29T02:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345440#M354</link>
      <description>&lt;P&gt;This made me curious. &amp;nbsp;Where would be the furthest place someone could travel to SGF17 from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.func.geo;
function radians(deg) group='Geospatial' label='Convert degrees to radians';
 return ((deg/180)*constant('PI'));
endsub;

function degrees(rad) group='Geospatial' label='Convert radians to degrees';
 return ((rad/constant('PI'))*180);
endsub;

function disrad(d, option $) group='Geospatial' label='Convert distance to unit';
 if option='nm'
   then return ((d*180*60)/constant('PI'));
 if option='km'
   then return ((d*180*60*1.852)/constant('PI'));
 if option='miles'
   then return ((d*180*60*1.150779)/constant('PI'));
endsub;

function antipodal(lat1, lon1, lat2, lon2) group='Geospatial' ;
 tol=1e-9;
 diflat=abs(lat1 - lat2);
 diflon=abs(lon1 + lon2);
 return ((diflat &amp;lt; tol) &amp;amp; (abs(mod(diflon,360)-180) &amp;lt; tol));
endsub;

function gcDistance(lat1, lon1, lat2, lon2) group='Geospatial' label='Great Circle Distance in Radians';
return (2*arsin(sqrt((sin((lat1-lat2)/2))**2 + cos(lat1)*cos(lat2)*(sin((lon1-lon2)/2))**2)));
endsub;

subroutine gcIntermediate(lat1, lon1, lat2, lon2, f, lat, lon) group='Geospatial' label='Calculate intermediate points along a fractional point along a Great Circle route';
  outargs lat, lon;

  if (antipodal(lat1, lon1, lat2, lon2))
    then return;
  if (lat1=lat2 and lon1=lon2)
    then return;

  d=gcDistance(lat1,lon1,lat2,lon2);
  A=sin((1-f)*d)/sin(d);
  B=sin(f*d)/sin(d);
  x=A*cos(lat1)*cos(lon1) + B*cos(lat2)*cos(lon2);
  y=A*cos(lat1)*sin(lon1) + B*cos(lat2)*sin(lon2);
  z=A*sin(lat1)           + B*sin(lat2);

  lat=atan2(z,sqrt(x**2+y**2));
  lon=atan2(y,x);
endsub;
quit;

options cmplib=(work.func);

data map;
set mapsgfk.world(drop=x y);
where cont^=97 and density&amp;lt;2;
x=radians(long);
y=radians(lat);
run;

proc gproject data=map out=right dupok project=none
longmin=0 longmax=4;
id id;
run;
proc gproject data=map out=left dupok project=none
longmin=-4 longmax=0;
id id;
run;

data right;
set right;
segment=segment+5000;
x=x-constant('PI')*2;
run;

data pmap;
set right left;
run;

proc gproject data=pmap out=pmap parmin=mapsgfk.projparm parmentry=world norangecheck radians parmout=work.projparm;
id id;
run;

data orlando_dist;
set mapsgfk.world_cities(rename=(lat=_lat long=_long) where=(city='Orlando' and MapIDName1='Florida'));

_lat=radians(_lat);
_long=radians(_long);

do until(done);
  set mapsgfk.world_cities(where=(prxmatch('/^cities_/o',CtType))) end=done;

  lat=radians(lat);
  long=radians(long);

  dist_km=disrad(gcDistance(_lat,_long,lat,long),'km');
  geod_km=geodist(_lat,_long,lat,long,'rk');
  output;
end;
run;

ods select none;
ods output ExtremeObs=orlando_dist_max(keep=high city_high MapIDName1_high idname_high lat_high long_high _lat_high _long_high rename=(high=distance lat_high=lat1 long_high=lon1 _lat_high=lat2 _long_high=lon2));
proc univariate data=orlando_dist nextrobs=1;
var dist_km;
id city idname MapIDName1 lat long _lat _long;
run;quit;
ods exclude none;

data orlando_dist;
set orlando_dist_max end=done;
  f=0;
  y=lat1;
  x=lon1;
  output;
  do f=0.01 to 0.99 by 0.01;
    call gcIntermediate(lat1,lon1,lat2,lon2,f,y,x);
    output;
  end;
  f=1;
  y=lat2;
  x=lon2;
  output;
run;

data orlando_dist;
length id $15;
set orlando_dist;
if x&amp;gt;0 then x=x-constant('PI')*2;
id=cats('gcD',int(distance));
run;

proc gproject data=orlando_dist out=orlando_dist parmin=mapsgfk.projparm parmentry=world norangecheck radians;
id id;
run;

data anno;
length function color $8 style $12 html $300;
retain xsys ysys '2' hsys '3' line 1 anno_flag 1 when 'a';
set orlando_dist;
by id notsorted;
if first.id then do;
function='move'; output;
end;
else do;
function='draw'; size=.25; color='red'; output;
end;
run;

proc print data=orlando_dist_max label;
title 'Furthest Great Circle Distance to Orlando, FL';
footnote 'Location data from mapsgfk.world_cities';
id CITY_High IDNAME_High;
var distance;
label IDNAME_High='Country' CITY_High='City' distance='Distance (km)';
run;

proc gmap map=pmap data=pmap anno=anno;
title 'Great Circle Route Map';
id id;
choro id / levels=1 nolegend des='';
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, obviously, there are a lot of assumptions here about how people are traveling, etc... but, it's just for fun. &amp;nbsp;The map definitely deserves some better annotation as well, but I've been wanting to write something for displaying great circle routes for a while, so that's what I've done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV title="gmap28.png" align="center&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;img src="&gt;&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8024i3B190BB45D497652/image-size/large?v=1.0&amp;amp;px=-1" border="0" alt="gmap28.png" title="gmap28.png" align="left" /&gt;&lt;/DIV&gt;
&lt;DIV title="gmap28.png" align="center&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;img src="&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV title="gmap28.png" align="center&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;img src="&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV title="gmap28.png" align="center&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;img src="&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV title="gmap28.png" align="center&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;img src="&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV title="gmap28.png" align="center&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;img src="&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.ORLANDO_DIST_MAX" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;City&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;Country&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;Distance (km)&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Geraldton&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;Australia&lt;/TH&gt;
&lt;TD class="r data"&gt;18442.7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Mar 2017 16:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345440#M354</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2017-03-29T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345463#M360</link>
      <description>&lt;P&gt;Very nice, Fried Egg. I grew up in Orlando, so I can say that Perth, Australia, is the&amp;nbsp;farthest large well-known city:&amp;nbsp;18,328 km.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, the real antipodal point to Orlando is in the Indian Ocean, so if a SAS user was stationed on an aircraft carrier on patrol in the Indian Ocean....&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 17:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345463#M360</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-03-29T17:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345486#M362</link>
      <description>&lt;P&gt;Nice work &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19924"&gt;@FriedEgg&lt;/a&gt;! It's a shame&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4892"&gt;@BobW_HBF_Oz&lt;/a&gt; from Perth won't be at SAS Global Forum this year who embarked the journey a few years ago when SASGF was in Washington, DC - &lt;A href="http://blogs.sas.com/content/sgf/2014/03/31/opportunityshare-present-win/" target="_blank"&gt;http://blogs.sas.com/content/sgf/2014/03/31/opportunityshare-present-win/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345486#M362</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2017-03-29T18:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345488#M363</link>
      <description>Nice job, FriedEgg!</description>
      <pubDate>Wed, 29 Mar 2017 18:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345488#M363</guid>
      <dc:creator>louisehadden</dc:creator>
      <dc:date>2017-03-29T18:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345498#M364</link>
      <description>And guess what dr. Bob after a 50 hours journey? Straight to the tweet-up even before dropping his luggage in his room where we had e few beers. Aussies are made from strong stuff.</description>
      <pubDate>Wed, 29 Mar 2017 18:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345498#M364</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2017-03-29T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Who's traveling the furthest?</title>
      <link>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345499#M365</link>
      <description>And guess what dr. Bob after a 50 hours journey? Straight to the tweet-up even before dropping his luggage in his room where we had a few beers. Aussies are made from strong stuff.</description>
      <pubDate>Wed, 29 Mar 2017 18:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Global-Forum-2017/Who-s-traveling-the-furthest/m-p/345499#M365</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2017-03-29T18:40:07Z</dc:date>
    </item>
  </channel>
</rss>

