Hi Jeremy Regarding the 1st issue) Yes, I do:
count($sr['phoneNumbers'][0] And I get values between 1 & 2 depending on the record. So, I assume that means there are either 1 number 'main' & a second number 'fax','mobile' etc. And the 2nd issue) this gives 8 results http://allmybookings.com/apiimages/search-results.php?q=comocomo%20antoine%2 0dansaert%2019%20brussels%201000&start=0 I've done tests with "foreach", "while", "for", but if I take out any of the foreach, such as: foreach ($body->responseData->results as $r) http://allmybookings.com/apiimages2/search-results.php?q=comocomo%20antoine% 20dansaert%2019%20brussels%201000&start=0 Stops working. http://allmybookings.com/foreach.php Any ideas? Thanks, Sebastian On 25/03/09 12:35, "Jeremy Geerdes" <[email protected]> wrote: > > First off, regarding the phone numbers issue, I wonder if you know > that there are phone numbers being returned. In other words, have you > looked at the Google response and verified that they have phone > number(s)? > > And second, regarding limiting to only 1 result, I do not believe you > can do it. The API offers two result set sizes, small and large, as of > right now. Small is four results; large is eight. However, you can > easily tell your script to process only one result. Just remove the > foreach loop that runs through the entire results array. > > 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 Mar 25, 2009, at 5:47 AM, Sebastian wrote: > >> >> I also would like to limit the results to 1, >> >> in PHP it would be a query like: LIMIT 1 >> >> but here I didn't manage to do so. >> >> there is a $start, is there an $end ? i couldn't find it in the >> reference section. >> >> Thanks, >> Sebastian >>> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
