title: How can I get only the city name from geocoder?
body: <p>I'm a very very very beginner in javascript.
  I'm building an app and decided to implement some geolocation features, the main one is to show the user his current locaition.
  I did it, but my function returns a full adress (like street, number, neighborhood, city, zip code and country)
  This is what is done so far...</p>
  
  <pre><code>/* CURRENT LOCATION */
  function geolocationSuccess(position) {
    var latitude = position.coords.latitude;
    var longitude = position.coords.longitude;
  
    var geocoder = new google.maps.Geocoder();
    var latlng = {lat: latitude, lng: longitude};
  
    geocoder.geocode({'location': latlng}, function(results, status) {
      if (status === google.maps.GeocoderStatus.OK) {
        if (results[0]){
          var user_address = results[0].formatted_address;
          document.getElementById("current_location").innerHTML = user_address;
        }else {
          console.log('No results found for these coords.');
        }
      }else {
        console.log('Geocoder failed due to: ' + status);
      }
    });
  }
  
  function geolocationError() {
    console.log("please enable location for this feature to work!");
  }
  
  $(document).ready(function() {
    if ("geolocation" in navigator) {
      navigator.geolocation.getCurrentPosition(geolocationSuccess, geolocationError);
    } else {
      alert("Geolocation not supported!");
    }
  });
  </code></pre>
  
  <p>How can I get and show just the city?</p>