Hi again. Why I said that the Country Code filter does not always filter out the results is if I search as http://maps.google.com/maps/geo?q=District,GB&output=xml it returns an address in China.
I am passing the two-letter ISO Country Code (and not the country name) in the request in the "q" parameter. I am not sure if at all that is being considered as a Country Code or there is some other way or parameter where I can specify the country code. Can you please help me out. Thanks. Joy On Jun 30, 7:39 pm, Andrew Leach <[email protected]> wrote: > On Jun 30, 3:06 pm, Joy <[email protected]> wrote: > > > There are two options to achieve this - > > A) either I specify the Country in the request so that the Geocoding > > Response returns matching locations from within that country only > > B) I filter out the results based on the country code > > > Since the Country Code will not be returned for all addresses, the > > only option left is to restrict the search to the selected Country. > > But passing the Country Code in the "q" parameter does not restrict > > the search. > > Doesn't it?http://maps.google.com/maps/geo?q=Cornish,GB&output=xml > yields ten placemarks, all in the UK. > > I reckon (A) is the way to do things. It's what I do: for my UK-based > site, I add ",UK" to what the user enters; if nothing is found, I > remove it and try again. > Seehttp://www.achurchnearyou.com/toddington-st-andrew/ > and on the "Find us" tab, try "Paris" and "Paris, France". > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
