Playnice: The Unofficial Latitude for the iPhone

playnice brady

Last week Google launched Latitude for the iPhone as a web app. They were held back from releasing a native app by Apple’s overbearing application approval process. However, this doesn’t matter that much as all location apps are currently hamstrung by Apple’s lack of background location updates. Luckily for iPhone customers there are developers out there trying to solve this problem.

updated latitude

Nat Friedman has released playnice on Github, a piece of code that will let any MobileMe & iPhone customer update their Google Latitude account. The PHP script is designed to be run as a chron job for scheduled updates. To use it you must activate the Latitude gadget on iGoogle and turn on the Find My iPhone feature on your MobileMe subscription. Playnice uses Tyler Hall’s Sosumi code from Github (Radar post) and there is no reason that similar code couldn’t be written to update Loopt, Whrrl, Brightkite or any other location service hamstrung by the iPhone’s lack of a location service. Since Latitude has only released a Read-only API (Radar post) the writing of your location to Latitude was done via screenscraping. [Disclosure: I was given a one-year subscription to MobileMe by Apple]

I find it silly that Google was asked not to release a native app. When you use Latitude for the iPhone in the browser it does detect your location and can display your friends’ locations. It is almost the same as a native application.

On the other hand I have to marvel that they were able to release it in a browser and I view as a technical triumph. Getting the user’s location from the browser was not possible 6 months ago. The fact that it is now possible to access location every modern mobile browser (Fennec, Opera, Safari, Android), desktop browser (Safari, Chrome, Firefox, IE8) plus Windows 7 and Snow Leopard is huge. Location and maps no longer demand a native app to be useable so perhaps Apple’s application approval team is just ahead of the times and is purposefully trying to drive app developers to the browser.

[via Hacker News]

tags: , ,
  • Martin May

    Great find, Brady!

    For the Brightkiters out there, I’ve modified the script to let you check in to Brightkite instead of Latitude. Works quite nicely :)

    https://github.com/HiroProt/playnice/tree

    Disclaimer: I work for Brightkite, but this script is a personal project and thus unofficial.

  • http://www.spurkle.co.uk Stu McLellan

    This is absolutely fantastic – I love it!

    I do have a question though, and no amount of searching seems to be able to provide the answer.

    When Find My iPhone is enabled, does the phone send its location to MobileMe at regular intervals, or does MobileMe poll the phone for its location when required?

    If the latter (which makes sense), then there are battery life issues surrounding how frequently to set the cron running.

    Does anyone know what’s going on under the hood with Find My iPhone?

    Stu

  • http://bliin.com tjaja

    i prefer an app like http://u.nu/8scr and all its possibilities that i just haven’t got the time to explain! By the way Mr. Forrest if you delete a comment thats trying to lead your readers to a deeply more advanced app please be so kind to explain publicly why you decided to withhold that info.

  • http://bliin.com tjaja

    OK, cool disclosure, thanks Mr. Forrest