Google地图自动完成组件过滤

How do I use use component filtering in geocoding when used with jquery ui auto complete

$("#address").autocomplete({
    //This bit uses the geocoder to fetch address values
    source: function(request, response) { 

        geocoder.geocode( {'address': request.term }, function(results, status) {

                    response($.map(results, function(item) {

                        return {
                           label:  item.formatted_address,
                            value: item.formatted_address,
                            latitude: item.geometry.location.lat(),
                            longitude: item.geometry.location.lng(),
                            loc :item.formatted_address   
                        }
                    }));
                })


    })
})

I want component filtering like this http://maps.google.com/maps/api/geocode/json?address=santa+cruz&components=country:ES&sensor=false

Something like this will work for you hopefully ..

geocoder.geocode( {'address': request.term ,components=country:ES}, 

Why don't you use Google's Places Autocomplete library...(since you want to have autocomplete after geocoding )

var autoCompleteOptions = {
    componentRestrictions: {country: 'us'} //any country you want
    };

autocomplete = new google.maps.places.Autocomplete($('#address')[0], autoCompleteOptions);