refugerestrooms icon indicating copy to clipboard operation
refugerestrooms copied to clipboard

Integrate Foursquare API

Open mathonsunday opened this issue 10 years ago • 7 comments

For listing hours and images.

mathonsunday avatar Apr 14 '14 06:04 mathonsunday

Can I get a mockup or general suggestions for where to put the hours information?

mathonsunday avatar Apr 20 '14 02:04 mathonsunday

It seems like Basecamp's Local Time (https://github.com/basecamp/local_time) is what I want to handle time zone differences. Anyone have suggestions or tips in that department? As far as I can tell the Foursquare API is giving me back times in UTC.

mathonsunday avatar Apr 20 '14 03:04 mathonsunday

this was the original spec for the show page: https://github.com/RefugeRestrooms/refuge_assets/blob/master/specs/original_specs/showpage.jpg

but it doesn't account for the image

tkwidmer avatar Apr 21 '14 17:04 tkwidmer

What size do you want the image to be?

According to the Foursquare API docs: size can be one of the following, where XX or YY is one of 36, 100, 300, or 500.

  • XXxYY
  • original: the original photo's size
  • capXX: cap the photo with a width or height of XX (whichever is larger). Scales the other, smaller * dimension proportionally
  • widthXX: forces the width to be XX and scales the height proportionally
  • heightYY: forces the height to be YY and scales the width proportionally

mathonsunday avatar May 07 '14 00:05 mathonsunday

I think 100x100 is fine @mathonsunday . Currently the placeholder img is 110x110 - so lets do that.

tkwidmer avatar May 07 '14 01:05 tkwidmer

Anyone interested in pair programming with me (even an hour would be awesome) to help finish this task off? We could meet in person in the Bay Area or do it remotely.

mathonsunday avatar May 14 '14 10:05 mathonsunday

i could meet up this weekend and do a session. =) sunday?

tkwidmer avatar May 14 '14 16:05 tkwidmer