And here we go: http://code.google.com/apis/maps/documentation/geocoding/index.html
I won't need any help on this, so you can mark this as resolved. I hope this helps someone else out. Thanks, Keith On Sat, Jul 3, 2010 at 5:05 AM, Keith Stewart <[email protected]> wrote: > Ok, I just found this page: > > http://code.google.com/apis/ajaxsearch/documentation/reference.html#_fonje_local > > And using the sll parameter changes the location. Now I just need to > figure out how to convert a zip code into coordinates. =/ > > > On Sat, Jul 3, 2010 at 4:52 AM, Keith <[email protected]> wrote: > >> 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.
