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:
-
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.City ID.The country name of this location.Country codeThe 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.Region ID.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
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
The name of this location.void
The region of this location.void
setRegionId
(String regionId) Region ID.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. -
getCityId
City ID. Any city identified is also a city you can use for targeting ads. -
setCityId
City ID. Any city identified is also a city you can use for targeting ads. -
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. -
getCountryCode
Country code- Returns:
- the country code
-
setCountryCode
Country code -
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. -
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
Region ID. Specifies a geographic region, such as California. An identified region is the same as one you can use to target ads. -
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.
-