Is there a way to restrict the Google Places Autocomplete to search a city's streets?
问题 Can I restrict the search to a city's streets when using the Google Places Autocomplete ? 回答1: You can set the Autocomplete options to use geocode as the type, which will restrict the results that are returned to addresses: var input = document.getElementById( 'searchTextField' ); var options = { bounds: yourBounds, types: ['geocode'] }; autocomplete = new google.maps.places.Autocomplete( input, options ); There is no way to restrict the results to just streets, but this will largely achieve