How To Retrieve 'lat' and 'lng' from google maps 'location' object.
Hi, I have the
'location' object from a google map listener event. alert(location) shows something like this.
(46.05734091267766100, -114.173083371296539075)
I want to have the
var 'latitude'=46.057340 and the
var 'longitude'=-114.173083 . I will then use
AJAX to insert the value of these variables into my DB.
Nothing I do seems to work to split 'location' up.
R