how can i "... crawl through the structure to find what elements are present... "
I'm having this problem that sometimes address.AddressDetails.Country.Locality.LocalityName is not present. i just want to grab the country and locality to fill textbox. The adress always have the locality , but sometimes can't see it in address.AddressDetails.Country.Locality.LocalityName just starting with maps and xml thanks in advance. On 7 Dez 2009, 15:34, Mike Williams <[email protected]> wrote: > It's not unusual for > AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality. > LocalityName not to exist. In particular, many Localities are situated > directly in AdministrativeAreas rather than SubAdministrativeAreas. So > you always have tocrawlthrough thestructureto find what elements are > present rather than trying to access them directly. > > There are Issues about this sort of thing which you might consider > voting for. > > What is unusual is for the Country not to exist. Are you sure that you > waited for the GDirection reply to come back? > > If that's not the problem, post a *LINK* to a page that exhibits the > effect. > > -- > Mike Williamshttp://econym.org.uk/gmap
-- 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.
