title: Click on Google Maps API and get the address
body: <p>The following code allows to get the coordinates, on click.
  But <strong>how to get the address or city name or region name or country on click on the map, with Google Maps API?</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var myLatlng = new google.maps.LatLng(41.38,2.18);
  var myOptions = { zoom: 13, center: myLatlng}
  var map = new google.maps.Map(document.getElementById("map-canvas"), myOptions);
  
  google.maps.event.addListener(map, 'click', function(event) {alert(event.latLng);});</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html, body, #map-canvas {
      height: 100%;
      width: 100%;
      margin: 0px;
      padding: 0px
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=geometry,places&amp;ext=.js"&gt;&lt;/script&gt;
  &lt;div id="map-canvas"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>