title: Current URL To Download KML Data From Google Location History?
body: <p>I need to download google location history data in kml for a period of time.  </p>
  
  <p>Up until August 26, 2015, a URL in this format worked: </p>
  
  <pre><code>https://maps.google.com/locationhistory/b/0/kml?startTime=$start_seconds&amp;endTime=$end_seconds  
  </code></pre>
  
  <p>Now a link in that format fails.</p>
  
  <p>I suspect the problem is related to <a href="https://productforums.google.com/forum/#!topic/maps/xnzOR0SqYNM" rel="noreferrer">google changing the way its website displays location history</a>, though that change happened nearly a month earlier on July 22.</p>
  
  <p>A commenter <a href="https://productforums.google.com/forum/#!topic/maps/e4t5ijeVdPs" rel="noreferrer">on the google products forum</a> suggested this:</p>
  
  <blockquote>
    <p>[T]he KML generation can do multiple days, so just edit the URL</p>
    
    <p>Eg
      <a href="https://www.google.com/maps/timeline/kml?authuser=0&amp;pb=!1m8!1m3!1i2015!2i7!3i1!2m3!1i2015!2i7!3i8" rel="noreferrer">https://www.google.com/maps/timeline/kml?authuser=0&amp;pb=!1m8!1m3!1i2015!2i7!3i1!2m3!1i2015!2i7!3i8</a>
    gives 7 days. </p>
    
    <p>Highlighting the parts of the date:
    pb=!1m8!1m3!1i<strong>2015</strong>!2i<strong>7</strong>!3i<strong>8</strong>!2m3!1i<strong>2015</strong>!2i<strong>7</strong>!3i<strong>8</strong></p>
    
    <p>Note the month is zero based, so one off normal, 0=Jan, 11=Dec</p>
  </blockquote>
  
  <p>The commenter is wrong that the above link gives seven days.  It appears to only give about three, but perhaps the commenter is on the right track.  </p>
  
  <p>I have tried different values for the fields in the commenter's URL that are not obvious date-related but have not been able to find a URL that returns a kml file with data for more that a few days.</p>
  
  <p>I have several maps that use location history data, they are now all broken.</p>
  
  <p>Edit: There's a similar question here: <a href="https://stackoverflow.com/questions/32335114/extfiltrating-google-location-history-from-timeline">Extfiltrating Google Location History from Timeline</a></p>