Adding Flickr photos to Foursquare using YQL

Foursquare

Image by miss604 via Flickr

Browsing the updated Foursquare development documents I came across a real nice hidden gem: it appears that the Flickr folks have enabled so called machine tags to associate a photo with a Foursquare venue.

The almost hidden quote from the Flickr Developer blog:

This is the part where I casually mention that we’ve also added machine tags extra love for Four Square venues IDs. I’m just saying…

Now how cool would it be to display a little photo on my Foursquare Layar venue detail pages?
Remembering @codepo8’s execellent talk at the Fronteers conference last week, I realized that this is where the really cool YQL engine comes in really handy.

And indeed, the following query does it all:

select * from flickr.photos.search
    where machine_tags="foursquare:venue=132009"
    limit 1

Just save the REST command url, wrap it in a little PHP handler and we’re good to go (homework for next time: process the YQL response in XML format with js/e4x and skip the PHP part altogether).

So now you will see a little thumbnail picture for every venue which has a photo tagged on Flickr. There aren’t many yet, but hey, it’s a start!

See it in action in the Foursquare Layar app on your phone (iPhone, Android) or read my announcement for more background information about the foursquare layar app.

Reblog this post [with Zemanta]

Popularity: 5%

Post to Twitter Tweet This Post to Delicious Delicious Post to Reddit Reddit This Post Post to StumbleUpon Stumble This Post

Tags: , , , , ,
Comments off

Announcing Foursquare for Layar app

Image representing Foursquare as depicted in C...

Image via CrunchBase

Today Dennis Crowley from Foursquare gave an excellent presentation at  Mobile Monday, Amsterdam edition (#momoams on Twitter).

If you were there, you now know everything about the city as playground (pacmanhattan.com) and personal metrics.

I’m very grateful and proud that he took the opportunity to announce my Foursquare application for Layar, which allows you to use the most popular features of Foursquare from Layar.

What it is

Foursquare is a very popular social network game which integrates virtual social networks with the real world. Friends meet friends in cafes and bars and let each other know where they hang out. If you haven’t yet, it is definitely worth to check it out.

The Foursquare Layar app gives you access to the most frequently used features of the network.

  • Show venues around you, including which people are frequenting them, who is the mayor and user tips what to do.
  • Find nearby tips what to do and see at a glance what makes a location special.
  • Check in to a venue and let your friends know that you hang out there.
Encoded uri: layar://foursquare

Open Layer with foursquare

A basic version of these views is accessible even when you’re not signed in to Foursquare, which gives you an excellent opportunity to look around before jumping in and signing up (I’m quiet sure you will eventually plunge in and sign up to connect with your friends)!

These views are greatly enhanced when you’re signed-in. Then all venues where you or your friends have checked in are prioritized and highlighted. Tips from friends stand out. And you’re able to view what users have on their profile, which “badges” they earned and so on.

Give it a spin: open the Foursquare Layer on your mobile device.

Read the rest of this entry »

Popularity: 67%

Post to Twitter Tweet This Post to Delicious Delicious Post to Reddit Reddit This Post Post to StumbleUpon Stumble This Post

Tags: , , , , , , , ,
Comments (10)

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.