Class StreetAddress

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class StreetAddress
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    Street Address
    See Also:
    Serialized Form
    • Constructor Detail

      • StreetAddress

        public StreetAddress()
    • Method Detail

      • getStreetNumber

        public java.lang.String getStreetNumber()
        Returns:
        street number
      • getCity

        public java.lang.String getCity()
        Represents the larger city layer which can be defined as the urbanized region around major metropolitan areas.

        Unlike getCitySub(), this city region is not specifically delineated by jurisdictional boundaries but instead is influenced by the access point density detected by Skyhook's systems.

        Specifically in areas where Skyhook has good postal code coverage, getCity often resolves to the formal name of that postal region. This is most typical in the U.S., Canada, Australia, and other major European countries.

        Returns:
        city
        See Also:
        getCitySub()
      • getCitySub

        public java.lang.String getCitySub()
        Represets the second city layer that usually includes smaller township or municipal names found within the larger city region.

        Unlike getCity(), this geospatial layer is sourced from open-source data without modification and more closely aligns with general jurisdictional and town boundaries.

        There may be many cases globally where getCity() may not be available but there will be a result for getCitySub.

        Returns:
        city sub
        See Also:
        getCity()
      • getPostalCode

        public java.lang.String getPostalCode()
        Returns:
        postal code
      • getCounty

        public java.lang.String getCounty()
        Returns:
        county
      • getProvince

        public java.lang.String getProvince()
        Returns:
        province
      • getRegion

        public java.lang.String getRegion()
        Returns:
        region
      • getAddressLine

        public java.lang.String[] getAddressLine()
        Returns:
        array of address line
      • getStateName

        public java.lang.String getStateName()
        Returns:
        state name
      • getStateCode

        public java.lang.String getStateCode()
        Returns:
        state code
      • getCountryName

        public java.lang.String getCountryName()
        Returns:
        country name
      • getCountryCode

        public java.lang.String getCountryCode()
        Returns:
        country code
      • setStreetNumber

        public void setStreetNumber​(java.lang.String number)
      • setCity

        public void setCity​(java.lang.String city)
      • setCitySub

        public void setCitySub​(java.lang.String citySub)
      • setPostalCode

        public void setPostalCode​(java.lang.String code)
      • setCounty

        public void setCounty​(java.lang.String county)
      • setProvince

        public void setProvince​(java.lang.String province)
      • setRegion

        public void setRegion​(java.lang.String region)
      • setStateName

        public void setStateName​(java.lang.String name)
      • setStateCode

        public void setStateCode​(java.lang.String code)
      • setCountryName

        public void setCountryName​(java.lang.String name)
      • setCountryCode

        public void setCountryCode​(java.lang.String code)
      • setAddressLines

        public void setAddressLines​(java.lang.String[] lines)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object