Hi Andrew,

Thanks for your reply.

Actually my application code is dependent on the Country Node because
the Geocoding Repsonse returns matching places from different
countries when I search for a particualr location. Therefore I am
trying to filter out the result for the places with Country Code
equals to the Coutnry Code I have specified in the Request ( as "GB"
after the location name)
http://maps.google.com/maps/geo?q=Cornish,GB&output=xml&sensor=false&;...<key>

My requirement is that anyuser who will use my application will select
a Country and specify a location name and search for that location.
The application will offer all matching locations belonging only to
the country he has selected.
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. Is there any other way to do that?

Any help will be much appreciated.
-Joy


On Jun 30, 5:54 pm, Andrew Leach <[email protected]>
wrote:
> On Jun 30, 1:08 pm, Joy <[email protected]> wrote:
>
>
>
>
>
> > The Response that came back in the two cases are :
>
> > For Lake District:
>
> >  <address>The Lake District, Cumbria, UK</address>
> > - <AddressDetails Accuracy="9"
> > xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
> >  <AddressLine>The Lake District</AddressLine>
> >  </AddressDetails>
> > For Cornish:
> >  <address>Cornish Rd, Chipping Norton, Oxfordshire OX7 5, UK</
> > address>
> > - <AddressDetails Accuracy="6"
> > xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
> > - <Country>
> >  <CountryNameCode>GB</CountryNameCode>
> >  <CountryName>United Kingdom</CountryName>
> > - <AdministrativeArea>
> >  <AdministrativeAreaName>Oxfordshire</AdministrativeAreaName>
> > - <SubAdministrativeArea>
> >  <SubAdministrativeAreaName>West Oxfordshire</
> > SubAdministrativeAreaName>
> > - <Locality>
> >  <LocalityName>Chipping Norton</LocalityName>
> > - <Thoroughfare>
> >  <ThoroughfareName>Cornish Rd</ThoroughfareName>
> >  </Thoroughfare>
> > - <PostalCode>
> >  <PostalCodeNumber>OX7 5</PostalCodeNumber>
> >  </PostalCode>
> >  </Locality>
> >  </SubAdministrativeArea>
> >  </AdministrativeArea>
> >  </Country>
> >  </AddressDetails>
>
> I reckon it's because "Cornish Rd, Chipping Norton, Oxfordshire OX7 5,
> UK" is a real address, whereas "The Lake District, Cumbria, UK" is
> not, it's a rather large region. Country details stem from being able
> to place the address in a particular place and retrieving the
> hierarchy of the location details, ending up with the country.
>
> That is, it's a feature of how the geocoder returns its data. Frankly
> I reckon you're lucky to get anything at all returned for "The Lake
> District"!
>
> Andrew
> in the UK- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to