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. See http://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 -~----------~----~----~----~------~----~------~--~---
