code: function(){
        var place = this.autocomplete.getPlace();
        this.selected = true;
  
        if (!place.geometry){
          if (this.options.autoselect) {
            // Automatically selects the highlighted item or the first item from the
            // suggestions list.
            var autoSelection = this.selectFirstResult();
            this.find(autoSelection);
          }
        } else {
          // Use the input text if it already gives geometry.
          this.update(place);
        }
      }
docs: Update the plugin after the user has selected an autocomplete entry. If the place has no geometry it passes it to the geocoder.