Package com.restfb.types
Class Location
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.Location
-
- All Implemented Interfaces:
Serializable
public class Location extends FacebookType
Represents a location (address and latitude/longitude).This is used by several Graph API types, e.g.
Post
andPage
.- Since:
- 1.6.8
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Location()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCity()
The city name of this location.String
getCityId()
City ID.String
getCountry()
The country name of this location.String
getCountryCode()
Country codeDouble
getLatitude()
The latitude of this location.String
getLocatedIn()
The parent location if this location is located within another location.Double
getLongitude()
The longitude of this location.String
getName()
The name of this location.String
getRegion()
The region of this location.String
getRegionId()
Region ID.String
getState()
The state name of this location.String
getStreet()
The street address of this location.String
getZip()
The postal code of this location.void
setCity(String city)
The city name of this location.void
setCityId(String cityId)
City ID.void
setCountry(String country)
The country name of this location.void
setCountryCode(String countryCode)
Country codevoid
setLatitude(Double latitude)
The latitude of this location.void
setLocatedIn(String locatedIn)
The parent location if this location is located within another location.void
setLongitude(Double longitude)
The longitude of this location.void
setName(String name)
The name of this location.void
setRegion(String region)
The region of this location.void
setRegionId(String regionId)
Region ID.void
setState(String state)
The state name of this location.void
setStreet(String street)
The street address of this location.void
setZip(String zip)
The postal code of this location.-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Location
public Location()
-
-
Method Detail
-
getStreet
public String getStreet()
The street address of this location.- Returns:
- The street address of this location.
-
getCity
public String getCity()
The city name of this location.- Returns:
- The city name of this location.
-
getCityId
public String getCityId()
City ID. Any city identified is also a city you can use for targeting ads.
-
setCityId
public void setCityId(String cityId)
City ID. Any city identified is also a city you can use for targeting ads.
-
getState
public String getState()
The state name of this location.- Returns:
- The state name of this location.
-
getCountry
public String getCountry()
The country name of this location.- Returns:
- The country name of this location.
-
setCountry
public void setCountry(String country)
The country name of this location.
-
getCountryCode
public String getCountryCode()
Country code- Returns:
- the country code
-
setCountryCode
public void setCountryCode(String countryCode)
Country code
-
getZip
public String getZip()
The postal code of this location.- Returns:
- The postal code of this location.
-
getLatitude
public Double getLatitude()
The latitude of this location.- Returns:
- The latitude of this location.
-
setLatitude
public void setLatitude(Double latitude)
The latitude of this location.
-
getLongitude
public Double getLongitude()
The longitude of this location.- Returns:
- The longitude of this location.
-
setLongitude
public void setLongitude(Double longitude)
The longitude of this location.
-
getRegion
public String getRegion()
The region of this location.- Returns:
- The region of this location
-
getRegionId
public String getRegionId()
Region ID. Specifies a geographic region, such as California. An identified region is the same as one you can use to target ads.- Returns:
- the region id
-
setRegionId
public void setRegionId(String regionId)
Region ID. Specifies a geographic region, such as California. An identified region is the same as one you can use to target ads.
-
getLocatedIn
public String getLocatedIn()
The parent location if this location is located within another location.- Returns:
- The parent location if this location is located within another location
-
setLocatedIn
public void setLocatedIn(String locatedIn)
The parent location if this location is located within another location.
-
-