How can I restrict the Google Maps Places Library's Autocomplete to suggestions of only one city's places?
I am currently using the given code, but this only restricts suggestions to one country. I have seen one implementation but its using jQuery and I want to do it without using jQuery. var input = document.getElementById('searchTextField'); var options = { //types: ['(cities)'], componentRestrictions: { country: 'pk' } }; var autocomplete = new google.maps.places.Autocomplete( input, options ); Try adding a bounds property to the options object you are passing to the Autocomplete constructor, as shown in this code: var southWest = new google.maps.LatLng( 25.341233, 68.289986 ); var northEast =