]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make the Google Client Location API's output compliant with the w3c geolocation speci...
authorCraig Andrews <candrews@integralblue.com>
Fri, 20 Nov 2009 20:06:31 +0000 (15:06 -0500)
committerCraig Andrews <candrews@integralblue.com>
Fri, 20 Nov 2009 20:18:39 +0000 (15:18 -0500)
js/geometa.js

index 9c603ceaee3ce18eb4d1eb5bebd9eda0c7535738..26b66e768ee670957bf244c7c04bf48c0e95d3a3 100644 (file)
@@ -161,22 +161,23 @@ var AjaxGeoLocation = (function() {
                 var cl = google.loader.ClientLocation;
                 
                 var position = {
-                    latitude: cl.latitude,
-                    longitude: cl.longitude,
-                    altitude: null,
-                    accuracy: 43000, // same as Gears accuracy over wifi?
-                    altitudeAccuracy: null,
-                    heading: null,
-                    velocity: null,
-                    timestamp: new Date(),
-                    
+                    coords: {
+                        latitude: cl.latitude,
+                        longitude: cl.longitude,
+                        altitude: null,
+                        accuracy: 43000, // same as Gears accuracy over wifi?
+                        altitudeAccuracy: null,
+                        heading: null,
+                        speed: null,
+                    },
                     // extra info that is outside of the bounds of the core API
                     address: {
                         city: cl.address.city,
                         country: cl.address.country,
                         country_code: cl.address.country_code,
                         region: cl.address.region
-                    }
+                    },
+                    timestamp: new Date()
                 };
 
                 successCallback(position);