Local Search Control for Maps API

June 12, 2007

This afternoon we released a Local Search Control for the Google Maps API. If you already have a Google Maps application, extending it to support local search doesn't get any easier:

  • Include a reference to the AJAX Search API

  • Include a reference to the Local Search Control

  • Call map.addControl(new google.maps.LocalSearch());

Take a look at the sample below. It's the canonical "hello world" of Google Maps with the addition of the Local Search Control in the lower left corner. Try searching for Starbucks, or Pizza, etc.

As always, let us know what you think in the Google AJAX API developer forum.