In talking over this on the IRC channel (shameless plug, you can jump
on here: http://webchat.freenode.net/?channels=googleajaxapis ) we
came up with the following question:

What is the relationship between gl=, sll=, and q keywords in deciding
between locations with similar names (Dunedin, New Zealand vs Dunedin,
Florida)?

It seems like for your queries which included the city and state and/
or country in the q keywords worked as expected but gl and sll were
not always determining factors, though sometimes they were. For
example:

http://ajax.googleapis.com/ajax/services/search/local?v=1.0&sll=-36.847385,174.765735&q=clothes+Dunedin

vs

http://ajax.googleapis.com/ajax/services/search/local?v=1.0&sll=-36.847385,174.765735&q=clothes

It seems then that at the moment the q parameter's location
information is factored in, so the safest bet would be to include the
city's region/country.

Happy coding,

Jeff

On Mar 2, 4:38 pm, chris burgess <[email protected]> wrote:
> Trying to use local search to retrieve local listings. As you would :)
>
> http://googleajaxsearchapi.blogspot.com/2009/10/web-search-in-your-co...
> indicates that the 'gl' parameter should do this for web searches.
>
> This doesn't appear to work with local searches though, which seems
> odd.
>
> Results for the following two URLs differ (the latter is NZ-only):
>  *http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=clothes
>  *http://ajax.googleapis.com/ajax/services/search/web?v=1.0&gl=nz&q=clo...
>
> Results for the following two URLs are the same:
>  *http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=clothes
>  *http://ajax.googleapis.com/ajax/services/search/local?v=1.0&gl=nz&q=c...
>
> Am I missing some other aspect of local search?
>
> While the above examples are simplified, a "live" example which IMO
> shouldn't return results from Florida (there are >1 Dunedin cities
> worldwide) is,
>
>  *http://ajax.googleapis.com/ajax/services/search/local?v=1.0&gl=nz&sll...

-- 
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.

Reply via email to