From: Craig Andrews Date: Fri, 20 Nov 2009 20:06:31 +0000 (-0500) Subject: Make the Google Client Location API's output compliant with the w3c geolocation speci... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3285faac1b2c9486bbbd8fe75efdb83b3daffdc;p=quix0rs-gnu-social.git Make the Google Client Location API's output compliant with the w3c geolocation specification --- diff --git a/js/geometa.js b/js/geometa.js index 9c603ceaee..26b66e768e 100644 --- a/js/geometa.js +++ b/js/geometa.js @@ -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);