Package com.aetrion.flickr.photos.geo

Examples of com.aetrion.flickr.photos.geo.GeoInterface


        return favoritesInterface;
    }

    public GeoInterface getGeoInterface() {
        if (geoInterface == null) {
            geoInterface = new GeoInterface(apiKey, sharedSecret, transport);
        }
        return geoInterface;
    }
View Full Code Here


     * Get the geo interface.
     * @return Access class to the flickr.photos.geo methods.
     */
    public synchronized GeoInterface getGeoInterface() {
        if (geoInterface == null) {
            geoInterface = new GeoInterface(apiKey, sharedSecret, transport);
        }
        return geoInterface;
    }
View Full Code Here

      }
     
      if (isGeoSearch){
        //System.out.println("Trying to attach geo information:");
        if (photoList != null){
          GeoInterface g = photoInterface.getGeoInterface();
         
          //Nullpointer error - bug in flickj library,
          //photosForLocation return aber evtl nur eigene fotos!
//          PhotoList fot = g.photosForLocation(new GeoData( new Float(48.7771056f).toString(), new Float(9.1807688f).toString(), new Integer(1).toString()), null, 5, 0);
//          System.out.println("photosForLocation (location = stutgart mitte) returned fotos: " +  fot.size());
         
          //Go through all found fotos
          for (int i = 0; i < photoList.size(); i++) {
            Photo foto = (Photo) photoList.get(i);
            //Add to result list
            photos.add(foto);
           
            String id = foto.getId();
            try {
              GeoData loc = g.getLocation(id);
              if (loc != null){
                foto.setGeoData(loc);
              }
            } catch (Exception e) {
              System.err.println("Error fetching geodata for foto");
View Full Code Here

TOP

Related Classes of com.aetrion.flickr.photos.geo.GeoInterface

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.