title: Google Distance Matrix API no output
body: <p>I'm trying to use Distance Matrix API to calculate the distance between 2 places.
  Because this is the first time I'm trying to use this API I litterally copied the code I found on the <a href="http://bit.ly/RCwQ7z" rel="nofollow">Google Documentation's page</a>  and pasted on my page.
  But, I can't see any kind of output and I don't know why.
  This is <a href="http://www.angtrim.com/test/vediamo.html" rel="nofollow">my page</a> </p>
  
  <p>And this is the source :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html&gt; 
  &lt;meta http-equiv="Content-Type" content="text/html;charset=UTF-8"&gt;
  
  &lt;!-- Google Api --&gt;
  &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDDMkiaVfr1y0QCsx_qUsJKIBAWpkyXZrY&amp;sensor=false"&gt;
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  var origin1 = new google.maps.LatLng(55.930385, -3.118425);
  var origin2 = "Greenwich, England";
  var destinationA = "Stockholm, Sweden";
  var destinationB = new google.maps.LatLng(50.087692, 14.421150);
  
  var service = new google.maps.DistanceMatrixService();
  service.getDistanceMatrix(
    {
      origins: [origin1, origin2],
      destinations: [destinationA, destinationB],
      travelMode: google.maps.TravelMode.DRIVING,
      avoidHighways: false,
      avoidTolls: false
    }, callback);
  
  function callback(response, status) {
    if (status == google.maps.DistanceMatrixStatus.OK) 
    {
      var origins = response.originAddresses;
      var destinations = response.destinationAddresses;
      document.writeln(response.originAddresses[1]);    
    }
  
    else {
      document.writeln("error");
  
         }
    }  
  
  &lt;/script&gt;
  &lt;/html&gt; 
  </code></pre>