Package com.aetrion.flickr.photos

Examples of com.aetrion.flickr.photos.SearchParameters


   * @return the pictures
   */
  private void getPictures(Location c, int theAccuracy, boolean usePlacesForGeoSearch) {
    //TODO zwei verschiednen accuracies suchen? zb, citty und street? von jedem die h�lfte zeigen
    //TODO wenn keine im screen neu suchen -> erst punkte zeigen, erst foto zeigen laden bei click drauf
    SearchParameters sp = new SearchParameters();
    int radius = 3;
   
//    /*
    sp.setLatitude(new Float(c.lat).toString());
    sp.setLongitude(new Float(c.lon).toString());
    sp.setRadius(radius);
    sp.setRadiusUnits("km");
    sp.setHasGeo(true);
    sp.setAccuracy(theAccuracy);
   
    sp.setSort(SearchParameters.INTERESTINGNESS_DESC);
//    sp.setSort(SearchParameters.INTERESTINGNESS_ASC);
//    sp.setSort(SearchParameters.RELEVANCE);
//    sp.setSort(SearchParameters.DATE_POSTED_DESC);
//    */
   
 
View Full Code Here


              if (arg0.getSource() instanceof MTComponent){
                //MTBaseComponent clickedComp = (MTBaseComponent)arg0.getSource();
                switch (arg0.getID()) {
                case TapEvent.BUTTON_CLICKED:
                  //Get current search parameters
                      SearchParameters sp = new SearchParameters();
                      //sp.setSafeSearch("213on");
                      /*
                      DateFormat dateFormat = new SimpleDateFormat ("yyyy/MM/dd HH:mm:ss");
                      java.util.Date date = new java.util.Date ();
                      String dateStr = dateFormat.format (date);
                      System.out.println("Date: " + dateStr);
                      try{
                        Date date2 = dateFormat.parse (dateStr);
                        sp.setInterestingnessDate(date2);
                      }catch(ParseException pe){
                        pe.printStackTrace();
                      }
                      */
                     
                      //sp.setMachineTags(new String[]{"geo:locality=\"san francisco\""});
                      sp.setText(t.getText());
                      //sp.setTags(new String[]{t.getText()});
                      sp.setSort(SearchParameters.RELEVANCE);
                     
                      System.out.println("Flickr search for: \"" + t.getText() + "\"");
                     
                      //Load flickr api key from file
                      String flickrApiKey = "";
View Full Code Here

   * @param flickrSecret the flickr secret
   * @param photoSearchString the photo search string
   * @param sleepTime the sleep time
   */
  public FlickrLoader(PApplet pa, String flickrKey, String flickrSecret, String[] photoSearchString, long sleepTime) {
    this(pa, flickrKey, flickrSecret, new SearchParameters(), sleepTime);
   
    SearchParameters sp = new SearchParameters();
    // Simple example, just looking for a single tag
    sp.setTags(photoSearchString);
    this.setSearchParameters(sp);
  }
View Full Code Here

TOP

Related Classes of com.aetrion.flickr.photos.SearchParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.