Hi Jeremy & Ben, I've tried many ways to the the loop to get the "categories",
But, for some reason, instead of going thru the entire loop, it only goes 1 category at a time. When I refresh the same page, it will do the second category, etc. I have 19 categories: amusement park · bars · beauty · cafes · cinemas · concerts · doctors · hairdressers · hostels · hotels · massages · mechanics meeting-rooms · restaurants · saunas · shows · sports · theaters · wine tastings The idea would be to get them all in on shoot. I thought the problem would be the "require_once", but I took it out of the loop. Here is the code, if you could check it out, I would really appreciate it. http://paste-it.net/public/o735771/ Then for the order, how should I show them so I don't break the terms? I was thinking, for each category, put an order field. So the first record is 1, 2, .. And this for each category, then, I would show first all the number 1, then 2, ... Would this be OK? Thanks, Sebastian On 24/04/09 12:48, "Jeremy Geerdes" <[email protected]> wrote: > > sebastian: That's the way to do it. > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project quote: > http://jgeerdes.home.mchsi.com > http://jgeerdes.blogspot.com > http://jgeerdes.wordpress.com > [email protected] > > Unless otherwise noted, any price quotes contained within this > communication are given in US dollars. > > If you're in the Des Moines, IA, area, check out Debra Heights > Wesleyan Church! > > And check out my blog, Adventures in Web Development, at > http://jgeerdes.blogspot.com > ! > > > On Apr 24, 2009, at 4:53 AM, sebastian de comocomo wrote: > >> >> Hi Ben, >> >> I'm trying to do the same, If I understand correctly, we would need >> to do a >> loop, and in each loop we would need to search for a different >> category. So >> it would be 3 searches of 32 results each. Is there a better way to >> do so? >> >> Thanks >> Sebastian >> >> >> On 24/04/09 01:08, "Ben Lisbakken" <[email protected]> wrote: >> >>> >>> Hey James -- >>> >>> What you're asking for would require you to write your own custom >>> code. What you would do is use the base Javascript LocalSearch >>> searcher, or the REST URL, and do a search for gas stations, >>> restaurants, hotels, etc. Then, with the response, you would draw >>> the >>> results to the page, and place the markers on the map. >>> >>> http://code.google.com/apis/ajax/playground/#localsearch_with_markers >>> This sample shows how to do a LocalSearch and then add the markers to >>> the map. This will be similar to what you want to do, but you would >>> have to modify this a fair amount to be exactly what you want. For >>> instance, instead of using the SearchControl to do the search, you >>> would want to just do a plain LocalSearch without the control (that >>> way you could draw the results yourself). You would also want to >>> make >>> multiple instances of the LocalSearch, so you could do multiple >>> queries for restaurants, hotels etc. Lastly, you would want to draw >>> the results to the map the way that you want, including adding your >>> own info menus etc. >>> >>> -Ben >>> >>> On Apr 21, 12:53 pm, James <[email protected]> wrote: >>>> Hello All, >>>> >>>> I have the google local search working as a control on my map. >>>> >>>> http://dirtlink.net/dcce/track.php?track_id=30 >>>> >>>> However, I am having a hard time integrating it into another section >>>> of my page. If you look at my page, you'll see a section called >>>> Amenities, which I want to have links for things like >>>> >>>> gas stations, restaurants, hotels, etc. >>>> >>>> Ideally a person would click on this link, and it would submit the >>>> data to google and then populate the map with all the search >>>> results, >>>> for example, the closest gas statiosn. And thhe amenities tab would >>>> also list the results, like it does not as an overlay on the map. >>>> >>>> Any ideas?? I have been in the code playground for a few hours and I >>>> cant get it to work... >>>> >>>> James >>>> >> >> >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" 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-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
