<?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: Driving distance between 2 lat &amp; lon points in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195616#M7264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's more of an issue that we're usually not allowed to send addresses to the API - especially in health care as it identifies our patients &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've heard of people grabbing a yellow pages and using random address mixed with real addresses to help with the anonymize. An option we use as well is driving distances between zip codes - not as exact but close enough for many endeavors. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2015 14:39:01 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-08-11T14:39:01Z</dc:date>
    <item>
      <title>Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195609#M7257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to find a way to calculate the actual driving distance not overhead distance but street driving.&amp;nbsp; I'm not sure what the best way to approach this would be. &lt;/P&gt;&lt;P&gt;I did see there is a function called Geodist but I'm not sure if that returns the overhead distance or street driving distance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using sas 9.4 TS1M2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can give me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:23:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195609#M7257</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-08-10T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195610#M7258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GEODIST calculates the straight line distance.&amp;nbsp; We do not have anything in SAS that calculates the driving distance.&lt;/P&gt;&lt;P&gt;There are some people who have calculated the driving distance using Google Maps, but this is illegal according to Google.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.google.com/maps/terms?hl=en"&gt;https://developers.google.com/maps/terms?hl=en&lt;/A&gt;&amp;nbsp; (See 10.1.1.H)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195610#M7258</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-08-10T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195611#M7259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Darrell. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been unable to find anything that I could use just with SAS.&amp;nbsp; I don't want to use a 3rd party site or software due to the sensitivity of my data.&lt;/P&gt;&lt;P&gt;Someone suggested STATA has functions that calculate driving distance so I'm going to look into that.&amp;nbsp; I guess I could calculate it with STATA then bring it back to SAS for the rest of the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195611#M7259</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-08-10T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195612#M7260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To calculate street distances, you will need a graph that describes the length and connections of the streets.&lt;/P&gt;&lt;P&gt;If you have that, you can use shortest path algoritms to find the distance between 2 points or between set of points.&lt;/P&gt;&lt;P&gt;Shortest path algoritms are available in SAS/OR and SAS/SNA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195612#M7260</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-08-10T14:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195613#M7261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the reference for how Stata calculates driving distance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 15:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195613#M7261</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-08-10T15:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195614#M7262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm able to figure it out I will definitely post it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195614#M7262</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-08-10T16:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195615#M7263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; The SAS code posted here once worked great, but Google has once again revised their mapping HTML so I'm still working on fixing it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps" title="http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps"&gt;Driving Distances and Drive Times using SAS and Google Maps - sasCommunity&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the bottom of the web page, there's a link to a paper by Ash Roy and Yingbo Na from the Canadian Institute for Health Information in Torontoi ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Batch Production of Driving Distances and Times Using SAS® and Web Map APIs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings12/091-2012.pdf" title="http://support.sas.com/resources/papers/proceedings12/091-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/091-2012.pdf&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's really no reason to bother with a lot of complicated programming since driving time/distance has all been worked out by Google, Mapquest. etc. and I think it would be a lot easier to write SAS code that uses the an API rather than rebuilding the wheel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps&amp;nbsp; There's a paper that used the SAS code on the SAS Community site that showed that in many cases, straight line distance (as in the GEODIST function) might suffice ... &lt;STRONG&gt;A Nationwide Comparison of Driving Distance Versus Straight-Line Distance to Hospitals&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3835347/" title="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3835347/"&gt;http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3835347/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 14:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195615#M7263</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2015-08-11T14:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Driving distance between 2 lat &amp; lon points</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195616#M7264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's more of an issue that we're usually not allowed to send addresses to the API - especially in health care as it identifies our patients &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've heard of people grabbing a yellow pages and using random address mixed with real addresses to help with the anonymize. An option we use as well is driving distances between zip codes - not as exact but close enough for many endeavors. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 14:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Driving-distance-between-2-lat-lon-points/m-p/195616#M7264</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-08-11T14:39:01Z</dc:date>
    </item>
  </channel>
</rss>

