title: Parsing addressComponents in Google Maps
body: <p>I am unable to get full country name and state name on initialize and update on addressComponents. Though i am getting short names i would like to parse and retreive long_name of state and country.</p>
  
  <p>JS </p>
  
  <pre><code>function updateControls(addressComponents) {
  
      $('#ustate').val(addressComponents.stateOrProvince);
  
      $('#ucountry').val(addressComponents.country);
  }
  
  $('#mapz').locationpicker({
      location: {
          latitude: 45.91886765642549,
          longitude: -77.57585875078735
      },
      radius: 300,
  
      inputBinding: {
          locationNameInput: $('#pac-input'),
      },
      enableAutocomplete: true,
      onchanged: function(currentLocation, radius, isMarkerDropped) {
          var addressComponents = $(this).locationpicker('map').location.addressComponents;
          updateControls(addressComponents);
      },
      oninitialized: function(component) {
          var addressComponents = $(component).locationpicker('map').location.addressComponents;
          updateControls(addressComponents);
      }
  });
  </code></pre>
  
  <p>HTML :</p>
  
  <pre><code>&lt;div style="width: 900px !important; height:300px !important" id="mapz"&gt;&lt;/div&gt;
  
  &lt;input  autocomplete="off" placeholder="Search Box" id="pac-input" class="text_field" type="text"&gt;
  
  &lt;input type="text" name="ucountry" id="ucountry"  size="45" value=""  class="text_field" /&gt;
  
  &lt;input type="text" name="ustate"  id="ustate" maxlength="75"  class="text_field" /&gt;
  </code></pre>