title: Why isn't path showing on map in activity posted to Google Fit using REST API?
body: <p>I am using Google Fit REST API (via Google Java Client Library) to post an activity into Google Fit. </p>
  
  <p>In summary what I am doing is creating three <code>DataSet</code>s covering the given time period:</p>
  
  <ul>
  <li><code>"com.google.location.sample"</code> - Location</li>
  <li><code>"com.google.step_count.delta"</code> - Steps</li>
  <li><code>"com.google.calories.expended"</code> - Calories</li>
  </ul>
  
  <p>... then creating a <code>Session</code>, and finaly a <code>DataSet</code> with a single Activity Segment (in this case all the time is walking).</p>
  
  <p>This basically all seems to work - I can looking in <a href="http://fit.google.com" rel="nofollow">http://fit.google.com</a>, and I can see the activity, with the correct time, location, duration, steps and calories. The problem is with the map... all it shows is a shaded circle over the whole area of the walking - it doesn't show the track/path that I included in the location <code>DataSet</code>.</p>
  
  <p>EDIT... Here is <a href="https://drive.google.com/file/d/0B30sfAX3IWcGRmdSLTNaNmZYMU0/view?usp=sharing" rel="nofollow">an example</a> of what it looks like (in web UI).</p>
  
  <p>Why would this not be showing up correctly, when all of the rest of the activity shows up perfectly? </p>
  
  <p>These are some of my suspicions</p>
  
  <ul>
  <li>My data does not have either <code>altitude</code> or <code>accuracy</code> - which are two of the fields needed by <code>"com.google.location.sample"</code>. So I set <code>altitude</code> to 0.0 (metres), and set <code>accuracy</code> to 5.0 (metres). I particularly wonder if Google is reacting badly to me setting the altitude to 0.0 for each point?</li>
  <li>My location DataSet has say 100 <code>DataPoint</code>s in it, whereas by steps and calories <code>DataSet</code>s only have one <code>DataPoint</code> in each - i.e. I only have total steps, and total calories, for the walk. So there's an inconsistency (the earliest start and latest end dates are the same for each data set)</li>
  </ul>
  
  <p>Can anybody give any guidance about why this is happening please?</p>