title: How to extract latitude and longitude values from the object of the class "google.maps.LatLng"?
body: <pre><code>directionsService.route (request, 
                              function (result, status) 
                              {
                                  alert(status);
                                  if (status == google.maps.DirectionsStatus.OK)
                                  {
                                      directionsDisplay.setDirections (result);
  
                                      pointsArray = result.routes[0].overview_path;
  </code></pre>
  
  <p>The problem is that the <strong>*result.routes[0].overview_path;*</strong> returns an array of type <strong>'google.maps.LatLng'</strong>. i.e. Each element is an "object" of the class 'google.maps.LatLng', in that array.</p>
  
  <p>I want to write all those returned latitudes and longitudes on a text file.</p>
  
  <p>How to extract the individual "latitudes and longitudes" values from the object of the class "<strong>google.maps.LatLng</strong>"</p>