coding for food

a blog by @gregavola

  • Home
  • About Me
    • Edit
    • Delete
    • Autopost

    When Will I Be Mayor - 2.0!

     
    Well, I've listed to your feedback and I've put myself to work build you a better way to check how when you'll be mayor next. In this release we've added brand new features such as:

    OAuthentication: - Now you never have to share your foursquare password with When Will I Be Mayor again! This also allows for faster processing times with getting your history. However, this does force you to create an account with When Will I Be Mayor. I hate making new accounts too - however it's the only way. I'm sorry.

    Pagination - Some people requested the ability to paginate through their results. Since we only display 10 results per page (due to API limits), you might want to see other checkins at later date. Now all sort options have paginate enabled so you can paginate forever!

    Venue Monitoring - This is another cool features that allows your "monitor" venues within When Will I Be Mayor. Every week, we will check to see your progress on getting that Mayorship at your favorite place. We'll inform you of how many more checkins you have to go and the current mayor via email. Just click the binoculars icon at the top right hand-corner of the venue listing, and you'll be all set! You are allowed up monitor up to 5 venues at a time. It's that simple! This way you'll never forgot your mayorship challenge.  

    New Mayor Algorithm  - We've developed a much better algorithm on detecting how many actual check-ins you make actually count toward the mayorship total. That way you'll know exactly how many more check-ins you need!
     
    Real Maps, Yo  - We now have real-true, Google Maps in the feed. This was you can move around the map and see where the place actually is! It beats having static pictures!
     
    We also have a brand new theme curiosity of my good friend Tim Mather who redesigned the venue pages to make them look awesome. I'd say it's a big improvement - and I have to tip my hat to him for making this website 100x better.
     
     
     
    Go ahead and check the new version out, sign up and let me know what you think! 
     
    One more thing - remember to follow When Will I Be Mayor on Twitter at @mayorplease.
     
    Please send all feature requests, bug and defects to @mayorplease on Twitter.
     
    Thanks,
    Greg
    • 21 May 2010
    • Views
    • 3 Comments
    • Permalink
    • Favorited 1 Times
    • Daniel Brusilovsky
    • Tweet

    Comments 3 Comments

    Jun 14, 2010
    WisTex said...
    I love your website. One thing that I would recommend that you add is the ability to sort by number of time you need to check-in to be mayor. So all the places that require 1 check-in to become mayor would be listed first, then the places that require 2 check-ins, then the places that require 3 check-ins, etc. That would make your site very useful. Right now you have to scroll through several screens just to figure out where you should go next. Thanks and keep up the good work. :)
    Jun 18, 2010
    Greg Avola said...
    Hey WisTex,

    Thanks for your support! What your asking is very common as has been asked by a lot of people. The problem is the API structure for Foursquare doesn't allow you do that. Basically - how WWIBM works - is that we take your last checkins (250 at most), sort them, and count them by unique venue ID. During this process - the mayor count total is not available via the history call. So we have to make manual calls for each venue. That call gives us the the mayor count so we can perform our calculations. I would love to find a way to be able to sort by the "Counts to Mayorship" - but we would have to perform venue info calls on foursquare for at max 250 separate venues - which can be very time constraining.

    We're looking into a way that we can make this work and be fast for the users without putting strain on Foursquare APIs.

    Thanks again,
    Greg

    Jun 24, 2010
    WisTex said...
    Well, it can be done, but it would require you to store/cache the results in your database, and then display the results sorted however you want it.

    So the procedure would be:
    1. Make API call to Foursquare to Get the Last Checkins.
    2. Store the list in a database.
    3. Make calls to each venue to determine mayor count.
    4. Calculate mayor count and number of check-ins required to be mayor.
    5. Store the results in the database with the venues for that person.
    6. Display the results on the screen via a database call, sorting it how the user wants it sorted.

    Using this setup would allow you to do it.

    Leave a Comment

  • Greg Avola's Posterous


  • About Greg Avola


  • Subscribe

    Subscribe to this posterous
    Unsubscribe
    Follow this posterous RSS
  • Follow Me

         

Theme created for Posterous by Obox