summaryrefslogtreecommitdiffstats
path: root/geoclue.js
diff options
context:
space:
mode:
Diffstat (limited to 'geoclue.js')
-rw-r--r--geoclue.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/geoclue.js b/geoclue.js
index 8cde221..bcd0775 100644
--- a/geoclue.js
+++ b/geoclue.js
@@ -3,7 +3,7 @@
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
-const Geocode = imports.gi.GeocodeGlib;
+const Json = imports.gi.Json;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
@@ -56,10 +56,6 @@ function onLocationUpdated(proxy, sender, [oldPath, newPath]) {
let geoclueLocation = new LocationProxy(Gio.DBus.system,
"org.freedesktop.GeoClue2",
newPath);
- let location = new Geocode.Location({ latitude: geoclueLocation.Latitude,
- longitude: geoclueLocation.Longitude,
- accuracy: geoclueLocation.Accuracy,
- description: geoclueLocation.Description });
print('location:');
print('\tlatitude = ' + geoclueLocation.Latitude);
print('\tlongitude = ' + geoclueLocation.Longitude);
@@ -76,7 +72,7 @@ let [clientAddr] = _managerProxy.GetClientSync();
let clientProxy = new ClientProxy(Gio.DBus.system,
'org.freedesktop.GeoClue2', clientAddr);
-clientProxy.DesktopId = 'geoclue-test-simple';
+clientProxy.DesktopId = 'gnome-shell-ISS_Above';
clientProxy.DistanceThreshold = 10000;
clientProxy.RequestedAccuracyLevel = AccuracyLevel.EXACT;
let updatedId = clientProxy.connectSignal('LocationUpdated',