Class GeocodeResult

java.lang.Object
org.deltava.beans.stats.GeocodeResult
All Implemented Interfaces:
GeoLocation

public class GeocodeResult extends Object implements GeoLocation
A bean to store Google Geocoding results.
Since:
2.3
Version:
7.2
Author:
Luke
  • Constructor Details

    • GeocodeResult

      public GeocodeResult()
  • Method Details

    • getLatitude

      public double getLatitude()
      Description copied from interface: GeoLocation
      Returns the latitude of this location.
      Specified by:
      getLatitude in interface GeoLocation
      Returns:
      the latitude in degrees
    • getLongitude

      public double getLongitude()
      Description copied from interface: GeoLocation
      Returns the longitude of this location.
      Specified by:
      getLongitude in interface GeoLocation
      Returns:
      the longitude in degrees
    • getAddress

      public String getAddress()
      Returns the street address.
      Returns:
      the street address
      See Also:
    • getPostalCode

      public String getPostalCode()
      Returns the postal code.
      Returns:
      the postal code
      See Also:
    • getCity

      public String getCity()
      Returns the city name.
      Returns:
      the city name
      See Also:
    • getState

      public String getState()
      Returns the state name.
      Returns:
      the state name
      See Also:
    • getStateCode

      public String getStateCode()
      Returns the state code.
      Returns:
      the state code
      See Also:
    • getCountry

      public String getCountry()
      Returns the country name.
      Returns:
      the country name
      See Also:
    • getCountryCode

      public String getCountryCode()
      Returns the country code.
      Returns:
      the country code
      See Also:
    • setAddress

      public void setAddress(String addr)
      Updates the street address.
      Parameters:
      addr - the street address
      See Also:
    • setPostalCode

      public void setPostalCode(String code)
      Sets the postal code.
      Parameters:
      code - the postal code
      See Also:
    • setCity

      public void setCity(String city)
      Sets the city name.
      Parameters:
      city - the city name
      See Also:
    • setState

      public void setState(String state)
      Sets the state/province name.
      Parameters:
      state - the state/province name
      See Also:
    • setStateCode

      public void setStateCode(String code)
      Sets the state/province code.
      Parameters:
      code - the state/province code
      See Also:
    • setCountry

      public void setCountry(String country)
      Sets the country name.
      Parameters:
      country - the country name
      See Also:
    • setCountryCode

      public void setCountryCode(String code)
      Sets the country code.
      Parameters:
      code - the country code
      See Also:
    • setLocation

      public void setLocation(GeoLocation loc)
    • getCityState

      public String getCityState()
      Displays the city and state, and the country code if not US.
      Returns:
      the concatenated city, state and country
    • toString

      public String toString()
      Overrides:
      toString in class Object