5

I want the users to see only the country names when they type on the search box. Is it possible?

enter image description here

I've tried this (doesn't work):

var options = {
    types: [('regions')]
};

var searchBox = new google.maps.places.SearchBox(input, options);
rainy
  • 1,577
  • 1
  • 19
  • 27
  • 2
    Maybe you should use your own autocomplete, with just countries. Maybe like [this](http://baymard.com/labs/country-selector)? – geocodezip Dec 09 '14 at 00:45

1 Answers1

2

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

Hazarapet Tunanyan
  • 2,809
  • 26
  • 30