On Mar 30, 2:31 pm, GIS_Guy <[email protected]> wrote:
> We are using Oracle APEX and with Google API MAPS This Application has
> been working fine for the past year.  We discovered this month that
> our location and distance is not working anymore. We get an error
> shown below with line that error is referring to can you please help.
> We have large demo in two days of Application.
>
> Error: Unable to get value of the property 'Locality': object is null
> or undefined
>
> location1 = { lat: response.Placemark[0].Point.coordinates[1], lon:
> response.Placemark[0].Point.coordinates[0], address:
> response.Placemark[0].address, street:
> response.Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.Thoroughfare.ThoroughfareName,
> city:
> response.Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName
>  };
>
> But App partially works if I replace with this
>
> location1 = { lat: response.Placemark[0].Point.coordinates[1], lon:
> response.Placemark[0].Point.coordinates[0], address:
> response.Placemark[0].address };

Perhaps you could help us to help you: read and follow the posting
guidelines:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

and provide a link to your map that exhibits the problem:
http://groups.google.com/group/google-maps-api/web/why-including-a-link-is-critical

It sounds like the geocoder database has been updated for that area
and your code is not written defensively to handle the cases where
data is not present in some fields (in this case the Locality field).

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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