How to get the autocomplete list based on array of cities using Javascript
问题 I need to get the autocomplete values based on some city using google place API in Javascript. But as per my code its not working as expected. Here I have some cities in array like city=['Bhubaneswar','Balesore','abcd'] and When user will type to get the place the matching should be belongs to these cities only. I am explaining my code below. <script src="https://maps.googleapis.com/maps/api/js?key=MAP_KEY&libraries=places&callback=initMap" type="text/javascript" async defer></script>