Package com.skyhookwireless.wps
Class StreetAddress
- java.lang.Object
-
- com.skyhookwireless.wps.StreetAddress
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class StreetAddress extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableStreet Address- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreetAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreetAddressclone()java.lang.String[]getAddressLine()java.lang.StringgetCity()Represents the larger city layer which can be defined as the urbanized region around major metropolitan areas.java.lang.StringgetCitySub()Represets the second city layer that usually includes smaller township or municipal names found within the larger city region.java.lang.StringgetCountryCode()java.lang.StringgetCountryName()java.lang.StringgetCounty()java.lang.StringgetPostalCode()java.lang.StringgetProvince()java.lang.StringgetRegion()java.lang.StringgetStateCode()java.lang.StringgetStateName()java.lang.StringgetStreetNumber()voidsetAddressLines(java.lang.String[] lines)voidsetCity(java.lang.String city)voidsetCitySub(java.lang.String citySub)voidsetCountryCode(java.lang.String code)voidsetCountryName(java.lang.String name)voidsetCounty(java.lang.String county)voidsetPostalCode(java.lang.String code)voidsetProvince(java.lang.String province)voidsetRegion(java.lang.String region)voidsetStateCode(java.lang.String code)voidsetStateName(java.lang.String name)voidsetStreetNumber(java.lang.String number)java.lang.StringtoString()
-
-
-
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,
getCityoften 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 forgetCitySub.- 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:
toStringin classjava.lang.Object
-
clone
public StreetAddress clone()
-
-