Trying to assess "potential" for a venue...

6 views
Skip to first unread message

DVockell

unread,
Jan 18, 2011, 1:59:38 AM1/18/11
to foursquare API
First, let me confess my early-stage experience -- if I could knock
this off in FORTRAN, this would be easy (my CS degree included a lot
of punch cards) -- assume I will lock down either PHP or Objective-C
to get this done. If you can point me in the right direction, and
show a quick example, I'd appreciate the help.

I aspire to be able to demonstrate to a venue the "potential" of
foursquare users near their venue, for example, over the past 10
hours, how many unique IDs checked in within 1 mile. I want to use
this to inspire them to put a special into the system,

In my API fantasies, I pass a lat/lan, a radius, and a time frame and
get back the number of unique IDs that checked into that geofence
during the allotted time.

In my working-hard-for-it-API-vision I could also imagine picking a
lat/lan, calculating all the venues within a distance, finding them in
the foursquare API, and then "watching" them all for a week to build
up the "potential". I don't fear the hard work, but I love real-timey-
ness.


Any thoughts on how to build out my "potential" measure?


Thanks

matt hunter

unread,
Jan 18, 2011, 6:23:04 PM1/18/11
to foursquare API
This is possible... Here are my thoughts / tips for getting started:

1. Once you decide which language you wish to use, leverage one of the
existing libraries found here -- http://developer.foursquare.com/docs/overview.html.

2. You will need a key and secret to work with the API. Visit
http://foursquare.com/oauth to register your app to retrieve them.

3. Your requirements don't call for user authentication so it'll be a
little easier to build. It will mainly rely on venues/search (read
more about it here: http://developer.foursquare.com/docs/venues/search.htm).
You will need to do a venue search for your given lat and long,
passing along with it your client_id, client_secret, and limit. The
default limit is 10, the max limit is set at 50. If you want to
retrieve more you would have to do some work on the client side to
adjust the lat/long to retrieve more results.

4. It appears the data element you want is "hereNow". This will only
display users who are actually at the venue at that time and the users
will disappear after three hours. If you want to get the number of
users for a 10 hour window, you will need poll on your end.
Alternatively, have you considered using "usersCount" instead? It
displays the number of users who have checked in at a venue for that
venue's entire history.

You can see the data I'm referring to by checking out the venues/
search data explorer --
http://developer.foursquare.com/docs/explore.html#req=venues/search%3Fll%3D40.7,-74%26limit%3D50

happy developing!

-matt

Mr. Malesela Samuel Mogale

unread,
Jan 19, 2011, 2:18:39 AM1/19/11
to foursqu...@googlegroups.com
Hi,

How do I stop all the E-Mails from this group?

--
Kind Regards
Mr. Malesela Samuel Mogale
Cell: +27.82.959.7389
Fax: +27.86.646.2969
Skype: www.PDCA.co.za
CEO and Founder
www.PDCA.co.za
www.SouthAfrica2010.co.za
www.TelephoneDirectory.co.za

> --
> To post to this group, send email to foursqu...@googlegroups.com
>
> http://groups.google.com/group/foursquare-api
>


Danny W. Pimienta

unread,
Jan 19, 2011, 9:02:33 AM1/19/11
to foursqu...@googlegroups.com
You can either unsubscribe from the group or change your delivery
settings to "digest" or "none".

Sent from my iPhone

On Jan 19, 2011, at 2:18 AM, "Mr. Malesela Samuel Mogale" <c...@southafrica2010.co.za

Reply all
Reply to author
Forward
0 new messages