A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

8
A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack

Transcript of A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Page 1: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

A Mobile App for the Poor (Or the technology disabled)

SMS + Gmail + Latitude = API Location Hack

Page 2: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

The players

• How do you get your location from SMS via Gmail to Google Latitude?

Page 3: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Hack it together

• Hack something together with Python and Oauth

Page 4: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Steps to complete• Check out trunk:

– svn checkout http://gmail-location-for-latitude.googlecode.com/svn/trunk/ gmail-location-for-latitude-read-only

• Run three-legged-dance.py– This setups of the Oauth tokens for Gmail and Latitude

• Schedule glfl_run.py– Accesses Gmail via RSS– Looks for location pattern– If found, location is checked to make sure its newer then the most recent

Latitude update• If newer, geocode the location and set as Latitude position• Else, disregard

– Else, exit and don’t do anything

Page 5: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Running – 1 (In Chantilly, VA)

Page 6: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Running – 2 (Folly Beach, SC)

• Text “Loc 29439”• Now check Gmail• Run glfl_run.py

Page 7: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Now I am on vacation

Page 8: A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Why?

• I was bored• I don’t have an internet enabled phone• I don’t want an internet enabled phone

because I would just check work email• Google Code?– I don’t like to leave any code unshared– Easily setup source control and documentation