Parse location from Google Latitude

Showing 1-1 of 1 messages
Parse location from Google Latitude Jeppe 6/25/12 6:47 AM
Hi!
I want to use javascript to view my location from Google Latitude. I've got the map ready and the script for setting a marker on the map. What I can't find out is how to get the location (latitude and longitude) from Google Latitude.
Somehow I have to parse it in any way but can't find how.

Here is my code so far. I like to switch the given coordinates for dynamicly from Latitude:
<script type="text/javascript">

    //<![CDATA[
    function load() {

      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
var langlat= new GLatLng(56.66371651542126, 16.35181832694095);
        map.setCenter(langlat, 15);
var point=langlat;
map.addOverlay(new GMarker(point));
      }
}
//]]>

    </script>

  </head>

  <body onload="load()" onunload="GUnload()">

  <div id="header" style="height:180px;">Här är jag!</div>

  <div id="map_container" style="width:100%; height:300px; overflow-x:hidden; overflow-y:hidden;">

    <div id="map" style="width: 100%; height: 350px; position:relative; top:0; right:0; z-index:10;"></div>

</div>