I’m fetching a bunch of markers with the Places API. The attributes keep changing, can someone explain me why ?
I use something like (given __place is the result of a Places API call)
var myLatlng = new google.maps.LatLng(__place.geometry.location.Qa,
__place.geometry.location.Ra);
It used to be __place.geometry.location.Ia, __place.geometry.location.Ja then
__place.geometry.location.Oa / Pa
and now
__place.geometry.location.Qa / Ra
Why is it always changing, is it supposed to be like that or what ? I don’t understand how one can develop something with places API if it keeps changing ??
They are internal structures, you should never use them.
Use functions .lat() (instead of Qa) and .lng() (instead of Ra) for coordinates.
http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLng
for example:
latitude of the map center
var lat = map.getCenter().lat();longitude of the map center
var lng = map.getCenter().lng();And read this Error on Latitude and Longitude – Google Maps API JS 3.0