com.aetrion.flickr.places
Class Place

java.lang.Object
  extended by com.aetrion.flickr.places.Place

public class Place
extends java.lang.Object

Describes a place inside a Location. Each place contain its place ID, corresponding URL (underneath http://www.flickr.com/places/) and place type for disambiguating different locations with the same name.

A place delivered by find contains an URL, whereas the URL is missing if delivered by resolvePlaceId and resolvePlaceUrl.

Version:
$Id: Place.java,v 1.7 2009/07/12 22:43:07 x-mago Exp $
Author:
mago

Field Summary
static int TYPE_CONTINENT
           
static int TYPE_COUNTRY
           
static int TYPE_COUNTY
           
static int TYPE_LOCALITY
           
static int TYPE_NEIGHBOURHOOD
           
static int TYPE_REGION
           
static int TYPE_UNSET
           
 
Constructor Summary
Place()
           
Place(java.lang.String placeId, java.lang.String name)
           
Place(java.lang.String placeId, java.lang.String name, int placeType)
           
 
Method Summary
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getName()
           
 int getPhotoCount()
           
 java.lang.String getPlaceId()
           
 int getPlaceType()
          The PlaceType.
 java.lang.String getPlaceUrl()
           
 java.lang.String getWoeId()
           
 void setLatitude(double latitude)
           
 void setLatitude(java.lang.String latitude)
           
 void setLongitude(double longitude)
           
 void setLongitude(java.lang.String longitude)
           
 void setName(java.lang.String name)
           
 void setPhotoCount(int photoCount)
           
 void setPhotoCount(java.lang.String photoCount)
           
 void setPlaceId(java.lang.String placeId)
           
 void setPlaceType(int placeType)
          The PlaceType.
 void setPlaceType(java.lang.String placeType)
           
 void setPlaceUrl(java.lang.String placeUrl)
           
 void setWoeId(java.lang.String woeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_UNSET

public static final int TYPE_UNSET
See Also:
Constant Field Values

TYPE_LOCALITY

public static final int TYPE_LOCALITY
See Also:
Constant Field Values

TYPE_COUNTY

public static final int TYPE_COUNTY
See Also:
Constant Field Values

TYPE_REGION

public static final int TYPE_REGION
See Also:
Constant Field Values

TYPE_COUNTRY

public static final int TYPE_COUNTRY
See Also:
Constant Field Values

TYPE_CONTINENT

public static final int TYPE_CONTINENT
See Also:
Constant Field Values

TYPE_NEIGHBOURHOOD

public static final int TYPE_NEIGHBOURHOOD
See Also:
Constant Field Values
Constructor Detail

Place

public Place()

Place

public Place(java.lang.String placeId,
             java.lang.String name)

Place

public Place(java.lang.String placeId,
             java.lang.String name,
             int placeType)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getPlaceId

public java.lang.String getPlaceId()

setPlaceId

public void setPlaceId(java.lang.String placeId)

getPlaceType

public int getPlaceType()
The PlaceType.

Returns:
The PlaceType
See Also:
TYPE_COUNTRY, TYPE_COUNTY, TYPE_LOCALITY, TYPE_REGION

setPlaceType

public void setPlaceType(int placeType)
The PlaceType.

Parameters:
placeType -
See Also:
TYPE_COUNTRY, TYPE_COUNTY, TYPE_LOCALITY, TYPE_REGION, TYPE_NEIGHBOURHOOD, TYPE_CONTINENT

setPlaceType

public void setPlaceType(java.lang.String placeType)

getPlaceUrl

public java.lang.String getPlaceUrl()

setPlaceUrl

public void setPlaceUrl(java.lang.String placeUrl)

getWoeId

public java.lang.String getWoeId()

setWoeId

public void setWoeId(java.lang.String woeId)

getLatitude

public double getLatitude()

setLatitude

public void setLatitude(java.lang.String latitude)

setLatitude

public void setLatitude(double latitude)

getLongitude

public double getLongitude()

setLongitude

public void setLongitude(java.lang.String longitude)

setLongitude

public void setLongitude(double longitude)

getPhotoCount

public int getPhotoCount()

setPhotoCount

public void setPhotoCount(java.lang.String photoCount)

setPhotoCount

public void setPhotoCount(int photoCount)


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