Hi,

I want to know if its possible to access the JSON Request Objects in
my Geolocation Client. For Example in this code, so that I can
visualize the JSON Reqeust Objects to see what Wifi Towers , mac
Adresses .... are found by the Geolocation methods.

I want something like a function showJSONRequestObjects. The best
thing would be, if i could create JSON objects in my code out ohf the
JSON Request which I visualize in a html table.

....
...
  addStatus('Getting location...');


  function successCallback(p) {
    var address = p.gearsAddress.city + ', '
                  + p.gearsAddress.region + ', '
                  + p.gearsAddress.country + ' ('
                  + p.latitude + ', '
                  + p.longitude + ')';

    clearStatus();
    addStatus('Your address is: ' + address);
  }

  function errorCallback(err) {
    var msg = 'Error retrieving your location: ' + err.message;
    setError(msg);
  }

  try {
    var geolocation = google.gears.factory.create('beta.geolocation');
    geolocation.getCurrentPosition(successCallback,
                                   errorCallback,
                                   { enableHighAccuracy: true,
                                     gearsRequestAddress: true });


  } catch (e) {
    setError('Error using Geolocation API: ' + e.message);
    return;
  }
.....
....

When anybody knows how to access the JSON Geolocation Request Objects,
let me know!!

Thanks!!


Reply via email to