title: get city name from longitude and latitude using google geocoding api jquery
body: <p>I want to get city name from longitude and latitude.
  I am using following code but it is returning the entire address with city name, postal code, province and country.
  I just want only city name.</p>
  
  <pre><code>     $.ajax({ url:'http://maps.googleapis.com/maps/api/geocode/json?latlng='+position.coords.latitude+','+position.coords.longitude+'&amp;sensor=true',
                 success: function(data){
                 alert(data.results[4].formatted_address);
  
                 }
                 });
  </code></pre>
  
  <p>Please see the result from geocoding</p>
  
  <pre><code>{
             "long_name" : "Vancouver",
             "short_name" : "Vancouver",
             "types" : [ "locality", "political" ]
          },
  </code></pre>