Is it possible to remove from autocomplete space (google geocode)?

Hi.
Made using jquery ui auto-completion request using the geocoder. It returns what you need, but how to limit the displayed locations can? To remove the bridges, shops, etc., need only the coordinates, city, country. See the guides only restriction country, no restriction on other criteria like that no?
Thank you

Code:
var geocoder = new google.maps.Geocoder();

$('#placeProfile').autocomplete({
 // This bit uses the geocoder to fetch address values

 source: function(request, response) {
console.log(request);
 geocoder.geocode( {'address': request.term, 'componentRestrictions':{
'country':'EN'
 }}, function(results, status) {
 response($.map(results, function(item) {
 // Get address_components
 for (var i = 0; i < item.address_components.length; i++)
{
 var addr = item.address_components[i];
 var getCountry, getCountryShort;
 if (addr.types[0] == 'country')
 getCountry = addr.long_name;
 getCountryShort = addr.short_name;
}
 return {
 label: item.formatted_address,
 profileCity: item.address_components[0].long_name,
 latitude: item.geometry.location.lat(),
 longitude: item.geometry.location.lng(),
 country: getCountry,
 countrySh: getCountryShort
}
}));
})
},

 // This bit is executed upon selection of an address
 select: function(event, ui) {
 // Get values
//$('#profileCountry').val(ui.item.country);
$('#profileCountrySh').val(ui.item.countrySh);
$('#profileCity').val(ui.item.profileCity);
 $('#profileLat').val(ui.item.latitude );
$('#profileLng').val(ui.item.longitude);
}
});
July 9th 19 at 10:37
0 answer

Find more questions by tags Google MapsJavaScript