I am using google-maps in my react app and want to create a location search which will display options only when atleast 3 keys are entered. Google maps autocomplete starts showing options even when we enter 1 key. How can I restrict this behaviour?
const map = new google.maps.Map(document.getElementById('map'), {
zoom: 12,
center: new google.maps.LatLng(40.6700, -73.9400)
});
const autocomplete = new this.state.google.maps.places.Autocomplete(locationFilter);