com.aetrion.flickr.photos
Class GeoData

java.lang.Object
  extended by com.aetrion.flickr.photos.GeoData

public class GeoData
extends java.lang.Object

A geographic position.

Version:
$Id: GeoData.java,v 1.4 2009/07/23 20:41:03 x-mago Exp $
Author:
mago

Constructor Summary
GeoData()
           
GeoData(java.lang.String longitudeStr, java.lang.String latitudeStr, java.lang.String accuracyStr)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getAccuracy()
           
 float getLatitude()
           
 float getLongitude()
           
 int hashCode()
           
 void setAccuracy(int accuracy)
          Set the accuracy level.
 void setLatitude(float latitude)
           
 void setLongitude(float longitude)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoData

public GeoData()

GeoData

public GeoData(java.lang.String longitudeStr,
               java.lang.String latitudeStr,
               java.lang.String accuracyStr)
Method Detail

getAccuracy

public int getAccuracy()

setAccuracy

public void setAccuracy(int accuracy)
Set the accuracy level.

World level is 1, Country is ~3, Region ~6, City ~11, Street ~16.

Parameters:
accuracy -
See Also:
Flickr.ACCURACY_WORLD, Flickr.ACCURACY_COUNTRY, Flickr.ACCURACY_REGION, Flickr.ACCURACY_CITY, Flickr.ACCURACY_STREET

getLatitude

public float getLatitude()

setLatitude

public void setLatitude(float latitude)

getLongitude

public float getLongitude()

setLongitude

public void setLongitude(float longitude)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.