Add Your Foursquare Check-ins to Geocommons

September 21st, 2009by Kate Chapman


About the Author:  Kate is the Developer Community Lead at FortiusOne she is focused on evangelizing the GeoCommons platform to coders for use in their own applications. She can best be tracked on Twitter as @wonderchook Read more from this author


At the GeoCommons Office some of us are into Foursquare.  Foursquare is a location based game with social networking aspects.  Essentially when you go somewhere you “check-in” and you can get points for that.  Whoever has the most check-ins at a location becomes the “Mayor” of that location.  Here is the page for FortiusOne/GeoCommons, as you can see I’m currently the Mayor.

You can get your check-in feed as RSS, KML and ICS from the feeds page.

From the Finder! API you can register URLs.  Below is a sample curl command to register a KML feed of your Foursquare check-ins.

curl -i -X POST -u “yourusername:yourpassword” -d “overlay[wild_url]=http://feeds.foursquare.com/history/yourkmlfeed.kml” http://finder.geocommons.com/overlays.xml

Replace “yourusername:yourpassword” with your GeoCommons username and password and “http://feeds.foursquare.com/history/yourkmlfeed.kml” with your Foursquare KML feed.

By default your layer is not shared in Finder!, if you want to make a map though you have to share it.  In order to share it go to Finder and login.  Once logged in press “My Layers” and share your layer there.  If you ever decide you no longer want to share your check-in feed you can mark it “not shared” here as well.

My Finder Layers

Once your layer is uploaded and shared you can create a map.

My Foursquare Map
I embedded the map I made in my personal blog’s about page.  To embed your map click on the “Details” button while viewing the map and then click on “Do you want to embed this map in your website?”  Copy the code that appears and paste it into the HTML of your blog or other website.

Embed Map

If you enjoy playing Foursquare and want to share your feed try this out.  For more information on the Finder! API checkout it out here. Also if you ever happen to visit us in the GeoCommons’ office, check-in it is an order from the Mayor.

Popularity: 19% [?]

Leave a Reply