title: Google maps - computeDistanceBetween not working
body: <p>I have read some issues with calculate distance on google maps API but still not working for me. Here is my code:</p>
  
  <pre><code>function initMap() {
     var loc1 = new google.maps.LatLng(37.772323, -122.214897);
     var loc2 = new google.maps.LatLng(34.1633766,-81.6487862);
  
     console.log(google.maps.geometry.spherical.computeDistanceBetween(loc1,loc2));
  }
  </code></pre>
  
  <p>This is how I call library:</p>
  
  <pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?libraries=geometry,places&amp;key=MY_KEY&amp;libraries=places&amp;callback=initMap" async defer&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But I still get error: Uncaught TypeError: Cannot read property 'spherical' of undefined
      at initMap</p>
  
  <p>What I'm doing wrong? Do I have to enable some custom API?</p>