Hi,

some time ago I needed province and city:

try{
                                        if(typeof
(result.AddressDetails.Country.AdministrativeArea)!="undefined"){
                                                spot=spot+",
"+result.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName;

                                                var
province=result.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName;

                                                if(typeof
(result.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea)!
="undefined"){
                                                        if(typeof
(result.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality)!
="undefined")
                                                                var
city=result.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName;

                                                        else
                                                                var
city=result.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.SubAdministrativeAreaName;

                                                }

                                }else{
                                                //...
                                }
                         }catch(e){};

hope this help.

On 26 Sty, 23:10, Rossko <[email protected]> wrote:
> > I'm facing the same problem, however if you check it in Google
> > Playground it works there correctly.
>
> Check what 'it' ??

-- 
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