return Foursquareapi.getVenues(position); }).then(function (venues) { var venue = Utils.getRandomArrayItem(venues); return Foursquareapi.getOneVenue(venue.id, position); }).then(function (venue) { $scope.venue = venue; $scope.tip = Foursquareapi.getRandomTipForVenue(venue); }); geolokacja lista z foursquare’a zmienne widoku