hello,
Thanks for trying my plugin. I have run into a problem with the response from the Google Latitude Rest Service on my website also. During my trip to Italy during the past 2 weeks, Google Latitude worked perfectly the first week but on the second week all my points were gone from the map. When I got home I checked the response from the rest service and the json data is empty. I developed this plugin 3 months ago and never encountered this problem. I have posted my problem to the Google Latitude API Forum and hopefully someone can help. latitude forum
I will update this thread if I get a response on the forum.
If you want to test if you are having the same problem as me, go to around line 308 of google-latitude-history.php and add
var_dump(json_encode($latitudeHistory));
just below
$latitudeHistory = $this->latitude_con->get('location', $options);
then hit sync locations on the settings page and it will dump the rest service response to the settings screen. if you try this, does the response look like the one I posted on the latitude forum?
Hi Peter,
Do you already have a fix for it? (with google’s help/they fix the API, otherwise maybe you can do a dirty intermediate fix on your side..? Just to get the same functional output of this module)
This module is useless when it doesn’t work, which is too bad, because it’s a very nice idea!
Roel Broersma
I posted my problem to the latitude forum, no response. Someone else posted the same problem and no response from google. I have even tried google-
api-php-client with OAuth 2.0 and I got the same empty response. I cant do a quick fix b/c the problem is on the google side. If the the plugin was making a bad request the response from google should be an error not empty json.
My guess is that since Latitude is still in labs (aka beta) its not 100% reliable. I have noticed that sometimes my Google Latitude Badge with be down no reason. I have created a bug. Hopefully it will get addressed. Otherwise I cant do anything right now.
I have verified that its not my plugin by using Google’s OAuth 1.0 and 2.0 playgrounds which queries the Latitude API. I am getting the same result in both playgrounds – empty location data. 🙁
Hi Roel,
My bug was finally acknowledged by Google.
http://code.google.com/p/latitude-api/issues/detail?id=30
I updated the plugin last night, so update your plugin and try syncing with the granularity set to best.
Great man! It works. (indeed what you say: Set the Granularity to Best. Not to city)