I want the users to see only the country names when they type on the search box. Is it possible?
I've tried this (doesn't work):
var options = {
types: [('regions')]
};
var searchBox = new google.maps.places.SearchBox(input, options);
Google lets you to use some properties for getting the data like you want.You can set to it language and anything else. Here is a link,which will help you. http://www.w3docs.com/learn-javascript/places-autocomplete.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With