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:
Serialized Form
  • 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.
    • 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.
    • 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.
    • 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.