i want to filter google auto complete place api go get accurate complete address like road location,ariport,bus stand,train station and metro.
my code look like this ,
const options = {
componentRestrictions: {
country: ["it"]
},
fields: ["address_components", "geometry", "icon", "name"],
types: ['airport', 'train_station', 'lodging'],
};
var from_places = document.getElementById("form_address");
const searchBox = new google.maps.places.Autocomplete(from_places, options);
My reference site text i want to filter like this.