Yep sorry - documentation fail on my part. Cheers
On Dec 19, 3:00 am, Ben Appleton <[email protected]> wrote: > LatLng implements JS .toString(), so alert pretty-prints it. > > On 19 Dec 2009 08:23, "ChrisAlexander" <[email protected]> wrote: > > Hi there > > I have just observed the following piece of code: > > window.geocoder.geocode( { 'address':addr }, function(results, status) > { > if (status == google.maps.GeocoderStatus.OK) { > alert(results[0].geometry.location); > alert(results[0].geometry.location.latitude); > } else { > alert("Geocode was not successful for the following reason: " > + > status); > } > > }); > > It shows two alert boxes, one with a string-encoded geocode (e.g. > "(51.4139, -0.194268)") and the second with "null". According to your > documentation > herehttp://code.google.com/apis/maps/documentation/v3/services.html#Results > it states that geometry.location should be "a LatLng object, not a > formatted string." - which is correct? > > Thanks > > -- > > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%2B > [email protected]> > . > For more options, visit this group > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
