Hi again. Thanks for the reply. This is starting to make some sense now. So to summarize I can write a script that use the Geocode service with my query string ( http://maps.google.com/maps?f=q&hl=en&geocode=&q=radisson,+london,+uk<http://maps.google.com/maps?f=q&hl=en&geocode=&q=radisson,+london,+uk.>) and using the getLocations() Geocode method will return me a JSON object which I can then use to plot on my google map. Would this work?
Do you know of any good examples using Javascript with JSON to retrieve coordinates from the Geocode web service? Thanks again 2009/1/3 Barry Hunter <[email protected]> > > You can use JSON-P directly > http://code.google.com/apis/ajaxsearch/documentation/#fonje > > 2009/1/3 Henry P <[email protected]>: > > Hi Barry, > > Thanks for the reply. > > Im new to this sort of thing so can you elaborate on what you mean > > when you say that one can call the API directly without using Googles > > Javascript functions? > > Thanks again > > > > 2009/1/3 Barry Hunter <[email protected]> > >> > >> Yes you can do that. There is even the option of calling the API > >> directly without using Google's Javacsript functions, so you dont need > >> any particular front end. > >> > >> 2009/1/3 Henry P <[email protected]>: > >> > Hi Larry. Thanks for the reply! > >> > Just before I go down the avenue for local seach, do you know if it's > >> > possible to invoke a local search automatically - i.e pass a > >> > search values at load time? ideally I would like to hide that search > bar > >> > and > >> > create a search pertaining to another variable that is set in > >> > my html page from a paramter. Thanks again :) > >> > > >> > 2009/1/3 [email protected] <[email protected]> > >> >> > >> >> On Jan 3, 11:51 am, "Henry P" <[email protected]> wrote: > >> >> > Just to update my problem, > >> >> > If I go to google maps and enter "radisson, london, uk" as a query > >> >> > string > >> >> > and I can view all the marked > >> >> > radisson hotels in london. When I click on *link*, I can see the > >> >> > following > >> >> > query * > >> >> > > >> >> > > >> >> > > http://maps.google.com/maps?f=q&hl=en&geocode=&q=radisson,+london,+uk... > >> >> > > >> >> > *Is there anyway that I can generate this query string if I form a > >> >> > search > >> >> > string like "*radisson, london, uk*" in my javascript with google > >> >> > maps > >> >> > api? > >> >> > >> >> I think you are looking for the Local Search API: > >> >> > >> >> > http://code.google.com/apis/maps/documentation/services.html#Local_Search > >> >> > >> >> > >> >> > http://code.google.com/apis/maps/documentation/examples/control-localsearch.html > >> >> > >> >> -- Larry > >> >> > >> >> > I want to take the resulting markers and then plot them on my own > >> >> > google > >> >> > map... > >> >> > Thank you very much > >> >> > > >> >> > 2009/1/3 [email protected] <[email protected]> > >> >> > > >> >> > > >> >> > > >> >> > > Hi there. > >> >> > > I'm not interested in marking my own marker points using the map > >> >> > > overlay function, > >> >> > > I wish to write some javascript that will retrieve some markers > >> >> > > from > >> >> > > google maps. > >> >> > > >> >> > > I.e. if I go to to google maps and enter an address and see the > >> >> > > markers, I wish to have this on my web page, but I want to do > this > >> >> > > via > >> >> > > a javascript - make the call to google maps with an address such > as > >> >> > > "Heathrow, London, UK" or "Royal Mail, London, UK". > >> >> > > Can someone point we to an example? Im not too well up on the > >> >> > > lingo! > >> >> > > >> >> > > Thank you very much > >> >> > >> > > >> > > >> > > > >> > > >> > >> > >> > >> -- > >> Barry > >> > >> - www.nearby.org.uk - www.geograph.org.uk - > >> > >> > > > > > > > > > > > > > -- > Barry > > - www.nearby.org.uk - www.geograph.org.uk - > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps 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-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
