Hello. This is my first time here, in addition to my first time using Google Search API, though I am a long time developer. I searched several different locations for my answer, and when I kept coming up empty I decided to try posting here.
My question is, how I can specific the "local location" when making local searches with the PHP script? I grabbed the PHP code from http://code.google.com/apis/ajaxsearch/documentation/#fonje_snippets_php and modified to my specifics (my key and my ip). I wanted it to return only local results, and I found that changing "../search/web?" to "../search/local?" did the trick, but it is only returning local results from San Fransisco. I looked at how a normal Google Local Search is done (http://maps.google.com/maps? hl=en&safe=off&um=1&ie=UTF-8&q=bakery&fb=1&hq=bakery&hnear=Kernersville, +NC +27284&view=text&ei=5E8uTInuKcmXrAeYuN3zBQ&sa=X&oi=local_group&ct=more- results&resnum=4&ved=0CEMQtQMwAw) and saw the use of hnear that contains the location. Unfortunately adding this parameter to the Google API didn't change the location from San Fransisco. I assume it is always San Fransisco because the website is registered there. So basically I'm looking for a parameter to pass in the url so I can specify where the local search should take place. Any help or general direction pointing would be greatly appreciated. Thanks, Keith -- 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.
