maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Google Latitude (https://talk.maemo.org/showthread.php?t=26630)

lardman 2009-12-09 22:08

Re: Google Latitude
 
I've just started sniffing the TCP data that the web page exchanges with the Google servers, as it would be better to have a daemon (or at least a non-web browser app) to provide position updates from time to time (allowing the user to set the interval, etc.)

I see it returns the information about my Latitude-enabled contacts as a JSON message, though I've not worked out the exact format yet, nor where the page is uploading my position info to the Google server.

If you're more familiar with how HTML works than I am do please have a look at the comms :) (and you can open the above mentioned pages in a desktop browser, just make sure you haves some sort of location plugin available. E.g. Gears or the W3C geolocation one for Firefox, the latter being preferable as it's the one we use on our devices)

arkanoid 2009-12-10 07:53

Re: Google Latitude
 
Quote:

Originally Posted by lardman (Post 419736)
I've just started sniffing the TCP data that the web page exchanges with the Google servers, as it would be better to have a daemon (or at least a non-web browser app) to provide position updates from time to time (allowing the user to set the interval, etc.)

Truly kosher way could be:
1) enable XEP-0080 in IM client (and make it behave properly not to run GPS receiver constantly)
2) kindly ask google to update location data with XEP-0080 info provided via gtalk ;-)

lardman 2009-12-10 12:39

Re: Google Latitude
 
If you can get them to accept that, then I'm more than happy ;)

anidel 2009-12-10 13:12

Re: Google Latitude
 
Uhm installed maemo-geolcation, went to the provided URL, but it doesn't seem to get my position?

missing some steps?

sjgadsby 2009-12-10 13:18

Re: Google Latitude
 
Quote:

Originally Posted by anidel (Post 420815)
Uhm installed maemo-geolcation, went to the provided URL, but it doesn't seem to get my position?

You'll need to close all browser windows at a minimum, and possibly reboot, before the location plug-in is loaded. You'll know you're on the right track when upon your return to Google Latitude, a non-Fremantle-ish dialog box appears and asks your permission to share your location data.

anidel 2009-12-10 13:33

Re: Google Latitude
 
Yeah indeed I had to reboot the device....

rlinfati 2009-12-10 16:25

Re: Google Latitude
 
http://github.com/ablyler/playnice

a php code for update google latitude for iphone

is easy to use class.google.php to send a latitude, longitude and accuracy to google.

now... i'm translating to QT

lardman 2009-12-10 16:35

Re: Google Latitude
 
Good find :)

Kieron 2009-12-10 16:38

Re: Google Latitude
 
Quote:

Originally Posted by lardman (Post 417739)
Ok, so I decided to do some looking. The iPhone version of Latitude is run thorough a webpage, so I thought I might give the same a go.

Seems to work.

Install the maemo-geolocation plugin for the browser;

In the browser open "http://www.google.co.uk/maps/m?view=...urce=mog&gl=uk" which is the page the iPhone opens. There doesn't seem to be a check on the useragent (except if you try to open google.co.uk directly).

I guess it will be something similar for people not in the UK, a combination of desktop Firefox + "User Agent Switcher" + tcpdump should tell you exactly if you can't work it out by guessing.

Then click away and use the (web)app.

Location updates seem to work automatically.

I've not done much testing, but am ever hopeful this will give us access to a shared location service (as Latitude is sort of a de-facto standard now as it's supported by so many phones).

The one thing I have noticed is that it doesn't change the "last updated" time for a user, this is changed, iirc, if you use the Google homepage Latitude applet, so there's presumably some way of doing it.

Let me know if it does or doesn't work for you.

This is very interesting, thank you for posting this mate :)

Pretoriano 2009-12-11 07:10

Re: Google Latitude
 
You can use the iphone app:
http://maps.google.es/maps/m?mode=latitude

For me works on maemo5 + firefox mobile (html5)


All times are GMT. The time now is 19:29.

vBulletin® Version 3.8.8