Class 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 and Page.

Since:
1.6.8
Author:
Mark Allen
See Also:
  • Constructor Details

  • Method Details

    • getStreet

      public String getStreet()
      The street address of this location.
      Returns:
      The street address of this location.
    • setStreet

      public void setStreet(String street)
      The street address of this location.
    • getCity

      public String getCity()
      The city name of this location.
      Returns:
      The city name of this location.
    • setCity

      public void setCity(String city)
      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.
    • setState

      public void setState(String state)
      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

      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.
    • setZip

      public void setZip(String zip)
      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
    • setRegion

      public void setRegion(String region)
      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.
    • getName

      public String getName()
      The name of this location.
      Returns:
      The name of this location
    • setName

      public void setName(String name)
      The name of this location.
    • 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.