title: Strava API - accurate longitude and latitude
body: <p>Does anyone know a way to get the exact longitude and latitude for an activity from the strava api using a get request?</p>
  
  <p>I'm trying to integrate the strava api with google maps and I'm trying to build an array with the appropriate long/lat locations, but the <code>https://www.strava.com/api/v3/athlete/activities?per_page=100...</code> request is only returning longitude and latitudes rounded off like: <code>start_longitude: 2.6</code>.</p>
  
  <p>I've found a "hacky" way of retrieving the start coordinates by looping through results and then sending off another request within the loop, although this is sending WAY too many requests. - below is a snippet of my request: </p>
  
  <pre><code>// start request
  $.get( "https://www.strava.com/api/v3/athlete/activities?per_page=100&amp;access_token=ACCESSTOKEN", function (results) {
  
      // loop through request
      for (i = 0; i &lt; results.length; i++) {
  
          if(results[i].type === 'Run') {
              // add an element to the array for each result
              stravaComplete.push(true);
  
              $.get( "https://www.strava.com/api/v3/activities/"+ results[i].id +"?per_page=5&amp;access_token=ACCESSTOKEN", function (runs) {
                   if(typeof runs.segment_efforts[0] != "undefined"){
                      var runLatitude = runs.segment_efforts[0].segment.start_latitude;
                      var runLongitude = runs.segment_efforts[0].segment.start_longitude;
                      stravaActivityList.push({"lat": runLatitude, "lng": runLongitude});
                   }
  
                   // remove the element from the array
                   stravaComplete.pop();
  
                   // if all the elements have been removed from the array it means the request is complete
                  if(stravaComplete.length == 0) {
                      // reinitialize map
                      initMap(stravaActivityList);
                  }
               });
          }
      }
  
  });
  </code></pre>
  
  <p>Any guidance would be great. Thanks.</p>