<?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: SAS/Google Maps drive distance/time - any info on what the different times mean? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449076#M112977</link>
    <description>&lt;P&gt;Ditto what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;said re: web scraping and Google's T&amp;amp;Cs.&amp;nbsp; However, they do offer a &lt;A href="https://developers.google.com/maps/documentation/distance-matrix/intro" target="_self"&gt;Google Distance Matrix API&lt;/A&gt;&amp;nbsp;-- account required -- that provides a more reliable, structured response.&amp;nbsp; I think the account is required for rate-limiting purposes, and doesn't cost anything for a small number of API calls.&amp;nbsp; With PROC HTTP and the JSON libname engine, you can build a nice reliable SAS program to fetch this info.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 17:44:02 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-03-27T17:44:02Z</dc:date>
    <item>
      <title>SAS/Google Maps drive distance/time - any info on what the different times mean?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449060#M112971</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on location optimization and using drive times and distances from Google maps.&amp;nbsp; I got lots of useful info from the oft quoted Mike Zdeb at &lt;A href="http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps.&amp;nbsp;" target="_blank"&gt;http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps.&amp;nbsp;&lt;/A&gt; Very helpful and works well!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part of process involves taking the Google Maps output for a search between the 2 addresses.&amp;nbsp; You then use the scan function to parse out the driving distance and time.&amp;nbsp; Straight forward enough.&amp;nbsp; I am curious, however, about the results and hoping some community folks have some additional Google Maps experience.&amp;nbsp; The results from the searches typically have multiple times and distances.&amp;nbsp; Most examples use just the first time and distance... but does anyone know what the second&amp;nbsp; (or third, forth, etc) times represent?&amp;nbsp; Sometimes it looks like the first time/distance is an average... but other times the math doesn't work for it be an average.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are couple examples below..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) [35574,"22.1 miles",1],[1800,"30 min"],0,null,null,[[1712,"29 min"],1,3,[1620,"27 min"],[1563,2162,"26 - 36 min"]&lt;/P&gt;
&lt;P&gt;2) [101519,"63.1 miles",1],[4650,"1 h 18 min"],0,null,null,[[5136,"1 h 26 min"],2,2,[4269,"1 h 11 min"],[4308,5797,"1 h 12 min - 1 h 37 min"]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, most the time, the distance isn't exactly what is listed when you just run the search in Google Maps.&amp;nbsp; It is usually close, but using the address in example 2, I get a distance distances of 58.3 miles and 63.7 with times of 1H39M and 1H20M.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recognize that drive times are educated guesses and I am not overly reliant on them. Just trying to understand the data and differences between direct searches and SAS grabbing it .&amp;nbsp; Any Google Maps experts out there they have any insights?&amp;nbsp; Any good resources on the topic?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449060#M112971</guid>
      <dc:creator>stuart_snap</dc:creator>
      <dc:date>2018-03-27T17:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Google Maps drive distance/time - any info on what the different times mean?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449074#M112976</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The results from the searches typically have multiple times and distances.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Typically, when you search for a driving&amp;nbsp;route there may be multiple&amp;nbsp;alternative routes. So the recommended is #1 and then the alternatives are the other suggested routes, with the different times.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, Google will sometimes auto correct addresses so that what you get is not what you expect but probably close enough.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Because of possible settings, ie avoid highways, avoid busy areas, you may get different first 'records' unless you've made sure they're consistently set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note that this type of usage violates Googles Terms of Service, so if you're using this for a work product that may be a significant roadblock/issue you need to deal with. I don't believe Open StreetMaps has this restriction.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449074#M112976</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-27T17:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Google Maps drive distance/time - any info on what the different times mean?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449076#M112977</link>
      <description>&lt;P&gt;Ditto what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;said re: web scraping and Google's T&amp;amp;Cs.&amp;nbsp; However, they do offer a &lt;A href="https://developers.google.com/maps/documentation/distance-matrix/intro" target="_self"&gt;Google Distance Matrix API&lt;/A&gt;&amp;nbsp;-- account required -- that provides a more reliable, structured response.&amp;nbsp; I think the account is required for rate-limiting purposes, and doesn't cost anything for a small number of API calls.&amp;nbsp; With PROC HTTP and the JSON libname engine, you can build a nice reliable SAS program to fetch this info.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449076#M112977</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-03-27T17:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Google Maps drive distance/time - any info on what the different times mean?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449082#M112980</link>
      <description>&lt;P&gt;Thanks Reeza and Chris.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luckily, we do have an API account.... I am just doing some feasibility testing and understanding the data (Drive distance vs geodistance, how accurate it "feels" etc.) before we do anything.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 18:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Google-Maps-drive-distance-time-any-info-on-what-the/m-p/449082#M112980</guid>
      <dc:creator>stuart_snap</dc:creator>
      <dc:date>2018-03-27T18:08:41Z</dc:date>
    </item>
  </channel>
</rss>

