Where is the AJAX Search Library?

4 views
Skip to first unread message

neeraja ariya

unread,
Jun 29, 2009, 3:34:00 AM6/29/09
to Google AJAX APIs
Hi!
I am required to display landmarks for the specified location and
content. I understood that we can do this using LocationSearchAPI. But
how to use that AJAX API in java application. I mean that how to use
that search API methods in the programm.
From where to get thhat AJAX search library.
Pls, suggest me...

Jeremy Geerdes

unread,
Jun 29, 2009, 8:08:48 AM6/29/09
to Google-AJAX...@googlegroups.com
There are no specific API methods for use in Java or any other
programming language. Outside of Javascript, the API is a simple
RESTful one, meaning that it simply responds to various arguments that
you include in the URL that you request. So to use it, all you need
to do is construct a URL with the appropriate parameters, request it
from Google, and then parse the JSON response. Check out the
following documentation for more information and even some code
snippets:

http://code.google.com/apis/ajaxsearch/documentation/index.html#fonje
http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje


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
jgee...@mchsi.com

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
!

neeraja ariya

unread,
Jun 30, 2009, 12:33:55 AM6/30/09
to Google AJAX APIs
Thanks for ur reply, I understood that URL pattern, but I have small
doubt in it,
What is the URL to get List of "Hotels" in a specific centre point,
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Paris%20Hilton
We have to give the centre point at the parameter "q", but how to set
the searchControl object that is "Hotels".

pls suggest me....
And also tell how to get the results for specified search control
object(s) "Hotels" between two point, pls specify the url,

Thanks in advance......

Its urgent....

On Jun 29, 5:08 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> There are no specific API methods for use in Java or any other  
> programming language.  Outside of Javascript, the API is a simple  
> RESTful one, meaning that it simply responds to various arguments that  
> you include in the URL that you request.  So to use it, all you need  
> to do is construct a URL with the appropriate parameters, request it  
> from Google, and then parse the JSON response.  Check out the  
> following documentation for more information and even some code  
> snippets:
>
> http://code.google.com/apis/ajaxsearch/documentation/index.html#fonjehttp://code.google.com/apis/ajaxsearch/documentation/reference.html#_...
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> 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, athttp://jgeerdes.blogspot.com

Jeremy Geerdes

unread,
Jun 30, 2009, 7:44:50 AM6/30/09
to Google-AJAX...@googlegroups.com
If you look in the documentation, you'll see that the sll parameter is
used to specify a lat/lng to search around, and you can use the sspn
parameter to roughly approximate searching between a couple of
points. Just remember that you'll still be limited to no more than 8
results per request and 32 results total, so if you're searching for
something very common, you probably still won't get all the results.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
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
!

neeraja ariya

unread,
Jul 1, 2009, 2:32:31 AM7/1/09
to Google AJAX APIs
Thank you,
Can you pls, clear my small doubt,
I used to search categorical landmarks using this URL
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Hotels
------- it gives its default results based on US as centre point.
I used to search same categorical landmarks using this URL for
paticular location
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Hotels&ssl=20.5936840,78.9628800
----- after that also it take default centre point that is US, instead
of taking the specified location(lat and long).

Pls, suggest me....

On Jun 30, 4:44 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> If you look in the documentation, you'll see that the sll parameter is  
> used to specify a lat/lng to search around, and you can use the sspn  
> parameter to roughly approximate searching between a couple of  
> points.  Just remember that you'll still be limited to no more than 8  
> results per request and 32 results total, so if you're searching for  
> something very common, you probably still won't get all the results.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> 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, athttp://jgeerdes.blogspot.com
>   !
>
> On Jun 29, 2009, at 11:33 PM, neeraja ariya wrote:
>
>
>
> > Thanks for ur reply, I understood that URL pattern, but I have small
> > doubt in it,
> > What is the URL to get List of "Hotels" in a specific centre point,
> >          http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Paris%2...
> > We have to give the centre point at the parameter "q", but how to set
> > the searchControl object that is "Hotels".
>
> > pls suggest me....
> > And also tell how to get the results for specified search control
> > object(s) "Hotels" between two point, pls specify the url,
>
> > Thanks in advance......
>
> > Its urgent....
>
> > On Jun 29, 5:08 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> >> There are no specific API methods for use in Java or any other
> >> programming language.  Outside of Javascript, the API is a simple
> >> RESTful one, meaning that it simply responds to various arguments  
> >> that
> >> you include in the URL that you request.  So to use it, all you need
> >> to do is construct a URL with the appropriate parameters, request it
> >> from Google, and then parse the JSON response.  Check out the
> >> following documentation for more information and even some code
> >> snippets:
>
> >>http://code.google.com/apis/ajaxsearch/documentation/index.html#fonje...

Jeremy Geerdes

unread,
Jul 1, 2009, 8:39:56 AM7/1/09
to Google-AJAX...@googlegroups.com
The parameter is sll, not ssl.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
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
!


neeraja ariya

unread,
Jul 2, 2009, 12:34:49 AM7/2/09
to Google AJAX APIs
Sorry for my silly typing mistake, I used the "sll" parameters itself,
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Hotels&sll=lat,lng&sspn=lat,lng
Even though I got the whole results in the realted country, but not
related to the specified places at "ssl" and "sspn".

If you dont mind, Can u pls give me the url for searching the results
between two specific locations. Pls,
Thanks in advance....
Again sorry for my mistake...

On Jul 1, 5:39 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> The parameter is sll, not ssl.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> 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, athttp://jgeerdes.blogspot.com
>   !
>
> On Jul 1, 2009, at 1:32 AM, neeraja ariya wrote:
>
>
>
> > Thank you,
> > Can you pls, clear my small doubt,
> > I used to search categorical landmarks using this URL
> >      http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Hotels
> > ------- it gives its default results based on US as centre point.
> > I used to search same categorical landmarks using this URL for
> > paticular location
> >      http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Hotels&...

neeraja ariya

unread,
Jul 3, 2009, 5:26:49 AM7/3/09
to Google AJAX APIs
Pls, suggest me...

On Jul 2, 9:34 am, neeraja ariya <neeraja.ar...@gmail.com> wrote:
> Sorry for my silly typing mistake, I used the "sll" parameters itself,
>            http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=Hotels&...
> Even though I got the whole results in the realted country, but not
> related to the specified places at "ssl" and "sspn".
>
> If you dont mind, Can u pls give me the url for searching the results
> between two specific locations. Pls,
> Thanks in advance....
> Again sorry for my mistake...
>
> On Jul 1, 5:39 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>
> > The parameter is sll, not ssl.
>
> > Jeremy R. Geerdes
> > Effective website design & development
> > Des Moines, IA
>
> > For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgee...
Reply all
Reply to author
Forward
0 new messages