List Info

Thread: How to get the results returned by GSearchControl?




How to get the results returned by GSearchControl?
user name
2007-04-07 23:00:05
Hi,

   ; How to get all the results returned by local search through GSearchControl's execute() method? I want to use the result';s 'point' to show markers on another GMap.

Thanks and Regards
Medha

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google AJAX Search API" group.
To post to this group, send email to Google-AJAX-Search-APIgooglegroups.com
To unsubscribe from this group, send email to Google-AJAX-Search-API-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: How to get the results returned by GSearchControl?
country flaguser name
United States
2007-04-09 09:43:50
The convoluted way I go about it

Navigate to http://maps.google.com
Put in the address
Click "Link to this Page"
Note the latitude and longitude
Create a map point with those coordinates.
Consider using an external xml file to hold your locations.

More ideas:
http://bluweb.co
m/us/chouser/gmapez/
http://www.mapbui
lder.net/index.php
h
ttp://www.econym.demon.co.uk/googlemaps/basic2.htm

Flash Buddy

On Apr 7, 10:00 pm, "Medha Shewale"
<mshew...gmail.com> wrote:
> Hi,
>
>     How to get all the results returned by local search
through
> GSearchControl's execute() method? I want to use the
result's 'point' to
> show markers on another GMap.
>
> Thanks and Regards
> Medha


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google AJAX Search API" group.
To post to this group, send email to
Google-AJAX-Search-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-AJAX-Search-API-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to get the results returned by GSearchControl?
user name
2007-04-09 10:04:57
Create a searchCompleteCallback on your local searcher.&nbsp; In the callback, iterate through&nbsp;.results and for each GlocalResult in the results array, use its .lat and .lng properties to create a marker.
 
--James

&nbsp;
On 4/8/07, Medha Shewale < mshewalegmail.com">mshewalegmail.com> wrote:
Hi,

 ; &nbsp; How to get all the results returned by local search through GSearchControl's execute() method? I want to use the result';s 'point' to show markers on another GMap.

Thanks and Regards
Medha





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google AJAX Search API" group.
To post to this group, send email to Google-AJAX-Search-APIgooglegroups.com
To unsubscribe from this group, send email to Google-AJAX-Search-API-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: How to get the results returned by GSearchControl?
country flaguser name
United States
2007-04-09 13:17:55
Checkout the sample:

ht
tp://www.google.com/uds/samples/random/lead.html

Specifically look at the drawMap( ) function to see how you
can
extract lat and lng from an array (leads) built from search
results.

            // grab the result object
            var lead = leads[i];
            var point = new GPoint(parseFloat(lead.lng),
parseFloat(lead.lat));

(This page is linked from: h
ttp://code.google.com/apis/ajaxsearch/samples.html
- "Code Sample")

-Chris

On Apr 9, 8:04 am, "VisualDxHealth Logical
Images"
<visualdxhea...gmail.com> wrote:
> Create a searchCompleteCallback on your local searcher.
 In the callback,
> iterate through .results and for each GlocalResult in
the results array, use
> its .lat and .lng properties to create a marker.
>
> --James
>
> On 4/8/07, Medha Shewale <mshew...gmail.com> wrote:
>
>
>
> > Hi,
>
> >     How to get all the results returned by local
search through
> > GSearchControl's execute() method? I want to use
the result's 'point' to
> > show markers on another GMap.
>
> > Thanks and Regards
> > Medha


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google AJAX Search API" group.
To post to this group, send email to
Google-AJAX-Search-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-AJAX-Search-API-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API
?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )