1

Now that the Google Local Search API has been deprecated, is there a functional equivalent of google.maps.LocalSearch() in the Google Maps JavaScript Places Library? Specifically, I have a map on my website and within the map I placed a LocalSearch text-edit box with the following line:

   a_map.addControl(new google.maps.LocalSearch(),
   new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));

The user could then enter search text and a list of hits would appear above the text-edit box. How can I achieve the same result (or close) with the new Places library?

Thanks.

Phil
  • 1,030
  • 1
  • 16
  • 22
  • If there is no equivalent for LocalSearch and input has to be handled elsewhere on the webpage, say a form input field, that would suffice as an answer. I'm just not sure that's the case. – Phil Dec 06 '13 at 05:31

1 Answers1

1

I think you're looking for Places API Autocomplete. Here's a nice live demo.

lambshaanxy
  • 22,552
  • 10
  • 68
  • 92