Package com.aetrion.flickr.photos

Examples of com.aetrion.flickr.photos.GeoData


        String latStr = locationElement.getAttribute("latitude");
        String lonStr = locationElement.getAttribute("longitude");
        String accStr = locationElement.getAttribute("accuracy");
        // I ignore the id attribute. should be the same as the given
        // photo id.
        GeoData geoData = new GeoData(lonStr, latStr, accStr);
        return geoData;
    }
View Full Code Here


              }
             
              if (!alreadyContained/*!tagToPhoto.containsValue(foto)*/){
                String fotoName = foto.getTitle();
                if (foto.hasGeoData()){
                  GeoData geo = foto.getGeoData();
                  float lat = geo.getLatitude();
                  float lon = geo.getLongitude();
                  System.out.println("\"" + fotoName + "\"" + " Has GeoData! -> Lat:" + lat + " Lon:" + lon + " PlaceID: " + foto.getPlaceId());

                  Point2f pointOnScreen   = map.locationPoint(new Location(lat, lon));
//                  System.out.println(" -> Point on Screen: " + pointOnScreen);

View Full Code Here

            //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.GeoData

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.