On Jul 23, 7:30 am, DMacLeod <[email protected]> wrote:
> I'm receiving lat/lon from geocoder via var coords =
> results[0].geometry.location; (example: (27.345, -80.678)
> I'm trying to parse out the lat and lon by doing a javascript slice
> function. However this does not work. So, I figured I could do
> something like: var lat = results[0].geometry.location.lat; However,
> this returns: lat function(){return this[a]}. How can I pull the lat
> and lng from the results?

Did you try:
var lat = results[0].geometry.location.lat();
per the documentation:
location: LatLng

http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLng

LatLng has a method .lat(), not a property .lat

  -- Larry

>
> thanks
> Dan

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

Reply via email to