$( "#street" ).autocomplete({
source: function( request, response ) {
$.ajax({
dataType:"json",
url: "/main/search",
data: {
city: function(){return $('#city_id').val()},
locality: function(){return $('#locality_id').val()},
street: function(){return $('#street').val()},
AutoCompleteFor: "street"
},
success:function(data) {
response($.map(data, function(item) {
return {
label: item
};
}))}
});
}
});
Так решилось.