title: How do I match destinations in the google maps Distance Matrix
body: <p>I've got a web app that needs 'distance from me' information for properties displayed on a map.</p>
  
  <p>I'm using googles Distance Matrix Service </p>
  
  <pre><code>distanceService = new google.maps.DistanceMatrixService();
  </code></pre>
  
  <p>I'm calling the service with one origin and multiple destinations.</p>
  
  <pre><code>  var params = {
      origins: [currentLocation],
      destinations: endPoints,
      travelMode: google.maps.TravelMode.DRIVING
    }
    distanceService.getDistanceMatrix(params, saveDistances);
  </code></pre>
  
  <p>My endPoints are an array of <code>google.maps.LatLng</code> objects taken from my properties. However when the results are returned they've changed these to addresses, and there's no longer any reference to the <code>LatLng</code>'s.</p>
  
  <p>Does anyone know if the Distance Matrix Service guarantees to return results in the same order I sent them? I couldn't see anything in the <a href="https://developers.google.com/maps/documentation/javascript/distancematrix" rel="nofollow">docs</a>. I really don't want to start calling the geocoding services just to match back to my properties (especially as the <code>LatLng</code>'s return won't be an exact match)</p>