title: Location not changed if copy paste address in the search box in google map
body: <p>I'm using google map which has a search field and as user types in that search field the location changes in the map, but also want if user Copy paste location in the search field then also the location should change, but right now it is not changing on the copy paste event.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function centerLocation() {
    var zoom = 6;
    var position = {
      coords: {
        latitude: 77.040,
        longitude: 2.908
      }
    };
    var map = new google.maps.Map(document.getElementById('map'), {});
    // Create the search box and link it to the UI element.
    var input = document.getElementById('pac-input');
    var searchBox = new google.maps.places.SearchBox(input);
    map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);
    // Bias the SearchBox results towards current map's viewport.
    map.addListener('bounds_changed', function() {
      searchBox.setBounds(map.getBounds());
    });
    searchBox.addListener('places_changed', function() {
      var places = searchBox.getPlaces();
      if (places.length == 0) {
        return;
      }
      console.log(places);
      if (places.length == 1) {
        var place = places[0];
        if (place.geometry.viewport) {
          // Only geocodes have viewport.
          map.fitBounds(place.geometry.viewport);
        } else {
          map.setCenter(place.geometry.location);
        }
      } else {
        // For each place, get the icon, name and location.
        var bounds = new google.maps.LatLngBounds();
        places.forEach(function(place) {
          if (!place.geometry) {
            console.log("Returned place contains no geometry");
            return;
          }
          if (place.geometry.viewport) {
            // Only geocodes have viewport.
            bounds.union(place.geometry.viewport);
          } else {
            bounds.extend(place.geometry.location);
          }
          map.fitBounds(bounds);
        });
      }
    });
  }
  google.maps.event.addDomListener(window, "load", initialize);
  function initialize() {
    centerLocation();
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html,
  body,
  #map-container2,
  #map {
    height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0px
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maps.googleapis.com/maps/api/js?libraries=places&amp;key=AIzaSyCkUOdZ5y7hMm0yrcCQoCvLwzdM6M8s5qk&amp;"&gt;&lt;/script&gt;
  &lt;div id="map-container2" class=""&gt;
    &lt;input id="pac-input" class="controls" type="text" placeholder="Ville - Recherche"&gt;
    &lt;div id="map"&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>