ludo012 / foursquared

Automatically exported from code.google.com/p/foursquared
Apache License 2.0
0 stars 0 forks source link

drop the concept of "cities" from the app #147

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
- remove all references to cityid (and send back geolat/geolong instead)

- as a good practice, pass a geolat/geolong pair for every call to the api

- remove all city methods (switchcity, checkcity): this will be
automatically done based on the geolat/geolong pair you pass for each call

- when adding venues, make sure to:
-- pass in (at very minimum): geolat/geolong
-- make all fields except venuename optional

if anything, this will make your code much simpler :)

things to look out for:

without cityid, /checkins will return full checkin history (without
filtering by city first). you should use the <distance> field in each
<checkin> object to sort your checkin history list. as good practice: take
the closest checkins (within 20 miles) and split them up into chrono groups
("Last three hours", "Today", "Yesterday", "Older") and then take the rest
of the list and put it into a "Friends in other cities" bucket

Original issue reported on code.google.com by naveen...@gmail.com on 22 Dec 2009 at 10:25

GoogleCodeExporter commented 8 years ago
Really, every API call? approvefriend? user? 

Original comment by jlapenna on 23 Dec 2009 at 10:36

GoogleCodeExporter commented 8 years ago
yes, please. :)

geolat/geolong will take its place

Original comment by naveen...@gmail.com on 23 Dec 2009 at 11:39

GoogleCodeExporter commented 8 years ago

Original comment by jlapenna on 25 Dec 2009 at 6:11