Demonstration of how to use the Google Latitude API with PHP (CLI)
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README Updated README with requirements and instructions. May 29, 2010
auth.php Added basic demo script. May 29, 2010



 - PHP >= 5.2.0 (
 - Zend OAuth libraries (

Registering Your Application
 - Go to
 - Register your application
 - Edit config.php to provide your CONSUMER_KEY and CONSUMER_SECRET
 - Save the changes

Authorising your Application
 - open a terminal window
 - run 'php auth.php'
 - Your browser should open and you will be prompted to authorise the application
 - When you receive the authorisation token paste it back into the terminal window
 - You should then be returned to the command prompt
 - You will notice a new file: token.txt. This contains your auth token

Getting your current location
 - open a terminal window
 - run 'php currentLocation.php'