You could use a GlocalSearch object to search for objects close by. It has a method called "setCenterPoint" which allows you to declare a focal point to weigh the results, this will undoubtedly result in items coming back outside of the desired range but at least will give the search object a center point to start from.
http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GlocalSearch On Oct 8, 1:52 pm, Miguel <[EMAIL PROTECTED]> wrote: > I'm store my markers in a google spreadsheet(name,lat,long) > and show in the map through javascript and JSON and > I thought that with google ajax api could help me to parsing the data :p . > > Thank you for you anwser. > > On Wed, Oct 8, 2008 at 12:30, Jeremy R. Geerdes <[EMAIL PROTECTED]> wrote: > > > > > > > The answer to your question will depend very much on how you added the > > markers to your map. For instance, if you did it with Google's > > MyMaps, you could publish the kml with a very unique id and use the > > LocalSearch functionality of the API to find it (in theory). In > > practice, that's probably not the greatest way to do things. > > > Alternatively, if you added your markers with simple Javascript, you > > could store your markers and their various text tidbits in an array > > that you can then parse through when someone enters a search term. > > The AJAX Search API is useless to do this. > > > Finally, if you are pulling your markers from a database of some sort, > > you could use a technique similar to the AJAX Search APIs to > > dynamically add a script to your page that will call a server-side > > application to search your database and return results in a line or > > two of Javascript code. To learn how to do this, you would want to > > research JSONP. > > > Jeremy R. Geerdes > > Effective website design & development > > Des Moines, IA > > > For more information or a project quote: > >http://jgeerdes.home.mchsi.com > > [EMAIL PROTECTED] > > > 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! > > > On Oct 8, 2008, at 12:59 PM, Miguel wrote: > > > > Hi! > > > > I'm started with the google APIS and I made a custom map with marks > > > of important places of my city especially place in my university > > > and I wondering with google ajax api can searches in my custom > > > maps?, search only in the places that I made(my marks). > > > > Thanks > > > > P.D. > > > please excuse my English > > > > -- > > > atte. > > > Miguel Enrique Guerra Connor > > > Guatemala, Guatemala > > > GNU/LINUX user 433347 > > > -De gracia recibisteis, dad de gracia.- > > > -Luc. 6:36- > > -- > atte. > Miguel Enrique Guerra Connor > GNU/LINUX user 433347 > -De gracia recibisteis, dad de gracia.- > -Luc. 6:36- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX API" 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 -~----------~----~----~----~------~----~------~--~---
