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
Represents a location (address and latitude/longitude).
This is used by several Graph API types, e.g. Post
and Page
.
- 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
-
Method Summary
Modifier and TypeMethodDescriptiongetCity()
The city name of this location.The country name of this location.The latitude of this location.The parent location if this location is located within another location.The longitude of this location.getName()
The name of this location.The region of this location.getState()
The state name of this location.The street address of this location.getZip()
The postal code of this location.void
The city name of this location.void
setCountry(String country)
The country name of this location.void
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
The name of this location.void
The region of this location.void
The state name of this location.void
The street address of this location.void
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 Details
-
Location
public Location()
-
-
Method Details
-
getStreet
The street address of this location.- Returns:
- The street address of this location.
-
setStreet
The street address of this location. -
getCity
The city name of this location.- Returns:
- The city name of this location.
-
setCity
The city name of this location. -
getState
The state name of this location.- Returns:
- The state name of this location.
-
setState
The state name of this location. -
getCountry
The country name of this location.- Returns:
- The country name of this location.
-
setCountry
The country name of this location. -
getZip
The postal code of this location.- Returns:
- The postal code of this location.
-
setZip
The postal code of this location. -
getLatitude
The latitude of this location.- Returns:
- The latitude of this location.
-
setLatitude
The latitude of this location. -
getLongitude
The longitude of this location.- Returns:
- The longitude of this location.
-
setLongitude
The longitude of this location. -
getRegion
The region of this location.- Returns:
- The region of this location
-
setRegion
The region of this location. -
getName
The name of this location.- Returns:
- The name of this location
-
setName
The name of this location. -
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
The parent location if this location is located within another location.
-