On Apr 25, 1:08 am, Chris <[email protected]> wrote: > I have a page that shows a map of a zip code at zoom level 10. I want > it to show all "pizza" places within that map (similar to "Search > Nearby" function on Google Maps GUI). I want it to create simple > markers for each item returned by this search. > > I want this search term to be pre-defined, hard-coded into the > application. What the user changes is the zip code. So the user inputs > a zip code, and the map reloads and shows all places found by hard- > coded search term "pizza" in the zip code user entered. > > I've tried the Google Maps Ajax Search Nearby option (that puts a > search box at the bottom of the map), but I need the search term hard- > coded, and only the zip code changeable.
I think what you would need to do is use an input box by which you centre the map, and then submit your LocalSearch query which uses the map settings. Geocoding the user entry uses the Maps API -- I have an example at http://acleach.me.uk/gmaps/geocoder-zoom.htm and there are others too -- but the LocalSearch query uses the Local Search API which has its own documentation and Group at http://groups.google.com/group/Google-AJAX-Search-API. You'll get better answers there about the Search APIs and how to fix the search term. -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
