title: Google geolocation Json weird behaviour
body: <p>Hi I am using auto complete search location search box of google. It works fine. But i have a weird problem regarding what i get as a JSON format</p>
  
  <pre><code>//geolocation   
  var input = document.getElementById('searchTextField');
  var options = {     
  };
  var autocomplete = new google.maps.places.Autocomplete(input,options);
  //autocomplete.bindTo('bounds', map); 
  
  google.maps.event.addListener(autocomplete, 'place_changed', function() {
       $("#results").html('');
    var place = autocomplete.getPlace();
      $("#results").append('&lt;p&gt; Latitude and Longtidute : '+place.geometry.location +'&lt;/p&gt;');
      $("#results").append('&lt;p&gt; Address : '+place.formatted_address +'&lt;/p&gt;');
  
  
      //extracting useful part    
  
      $.each(place.address_components, function() {
        if(this.types[0]=="route"){
             $("#results").append('&lt;p&gt; route : '+this.long_name +'&lt;/p&gt;');
        } 
  
        if(this.types[0]=="locality"){
            $("#results").append('&lt;p&gt; locality : '+this.long_name +'&lt;/p&gt;');
        } 
  
  
        if(this.types[0]=="administrative_area_level_2"){
            $("#results").append('&lt;p&gt; administrative area 2 : '+this.long_name +'&lt;/p&gt;');
        } 
  
        if(this.types[0]=="administrative_area_level_1"){
            $("#results").append('&lt;p&gt; administrative area 1 : '+this.long_name +'&lt;/p&gt;');
        } 
  
  
        if(this.types[0]=="country"){
            $("#results").append('&lt;p&gt; country : '+this.long_name +'&lt;/p&gt;');
        } 
    });
  
      $("#results").append('&lt;p&gt; Places Name : '+place.name+'&lt;/p&gt;');
  
      var searchAddressComponents = place.address_components;
  
  
      $.each(searchAddressComponents, function(){
        if(this.types[0]=="postal_code"){
            searchCountry=this.short_name;
        } 
    });
  });
  </code></pre>
  
  <p>Now as you can see , i use long_name explicitly to catch long_name i.e. if i get canada, i want to get it as canada not as CA. but unfortunately, here it gives me out CA both in long_name and short_name. But very strange is that if i type the API request directly in web browser , it gives me full_name as canada only...may be i am missing some options in my code. </p>
  
  <p>I am attaching some result for "The Toronto Condos, Capreol Court, Toronto, ON, Canada"
   code gives </p>
  
  <p>Latitude and Longtidute : (43.640368, -79.39589699999999)</p>
  
  <p>Address : 17 Capreol Court, Toronto, ON, Canada</p>
  
  <p>route : Capreol Court</p>
  
  <p>locality : Toronto</p>
  
  <p>administrative area 1 : ON</p>
  
  <p>country : CA</p>
  
  <p>Places Name : The Toronto Condos </p>
  
  <p>(mind ON &amp; CA)</p>
  
  <p>when i directly use browser <a href="http://maps.googleapis.com/maps/api/geocode/json?address=The+Toronto+Condos,+Capreol+Court,+Toronto,+ON,+Canada&amp;sensor=false" rel="nofollow">http://maps.googleapis.com/maps/api/geocode/json?address=The+Toronto+Condos,+Capreol+Court,+Toronto,+ON,+Canada&amp;sensor=false</a></p>
  
  <p>it gives me </p>
  
  <pre><code>"results" : [
        {
           "address_components" : [
              {
                 "long_name" : "Capreol Court",
                 "short_name" : "Capreol Ct",
                 "types" : [ "route" ]
              },
              {
                 "long_name" : "CityPlace",
                 "short_name" : "CityPlace",
                 "types" : [ "neighborhood", "political" ]
              },
              {
                 "long_name" : "Old Toronto",
                 "short_name" : "Old Toronto",
                 "types" : [ "sublocality", "political" ]
              },
              {
                 "long_name" : "Toronto",
                 "short_name" : "Toronto",
                 "types" : [ "locality", "political" ]
              },
              {
                 "long_name" : "Toronto Division",
                 "short_name" : "Toronto Division",
                 "types" : [ "administrative_area_level_2", "political" ]
              },
              {
                 "long_name" : "Ontario",
                 "short_name" : "ON",
                 "types" : [ "administrative_area_level_1", "political" ]
              },
              {
                 "long_name" : "Canada",
                 "short_name" : "CA",
                 "types" : [ "country", "political" ]
              },
              {
                 "long_name" : "M5V",
                 "short_name" : "M5V",
                 "types" : [ "postal_code_prefix", "postal_code" ]
              }
           ],
  </code></pre>
  
  <p>Can you please check...</p>