title: How to get country name from autocomplete and dragend?
body: <p>I tried the following</p>
  
  <pre><code>  google.maps.event.addListener(marker, 'dragend', function(marker) {
      var latLng = marker.latLng;
      currentLatitude = latLng.lat();
      currentLongitude = latLng.lng();
      var latlng = {
        lat: currentLatitude,
        lng: currentLongitude
      };
      var geocoder = new google.maps.Geocoder;
      geocoder.geocode({
        'location': latlng
      }, function(results, status) {
        if (status === 'OK') {
          if (results[0]) {
            input.value = results[0].formatted_address;
            var arrAddress = results[0].address_components;
            $.each(arrAddress, function (i, address_component) {
              if(arrAddress.types.includes('country')) {
                console.log(address_component.long_name);
              }
            });
          } else {
            window.alert('No results found');
          }
        } else {
          window.alert('Geocoder failed due to: ' + status);
        }
      });
    });
  
    autocomplete.addListener('place_changed', function() {
      var place = autocomplete.getPlace();
      if (!place.geometry) {
        return;
      }
      if (place.geometry.viewport) {
        map.fitBounds(place.geometry.viewport);
      } else {
        map.setCenter(place.geometry.location);
      }
      marker.setPosition(place.geometry.location);
      currentLatitude = place.geometry.location.lat();
      currentLongitude = place.geometry.location.lng();
      var arrAddress = place.address_components;
      $.each(arrAddress, function (i, address_component) {
        if(arrAddress.types.includes('country')) {
          console.log(address_component.long_name);
        }
      });
    });
  };
  </code></pre>
  
  <p>But I get</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'includes' of undefined</p>
  </blockquote>