Package com.skyhookwireless.wps
Class IPLocation
- java.lang.Object
-
- com.skyhookwireless.wps.Location
-
- com.skyhookwireless.wps.IPLocation
-
- All Implemented Interfaces:
java.io.Serializable
public final class IPLocation extends Location
Geographic location based on the IP address of the client making the request.This information is likely not accurate, but may give some indication as to the general location of the request and may provide some hints for the client software to act and react appropriately.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIP()StreetAddressgetStreetAddress()TimeZonegetTimeZone()booleanhasStreetAddress()booleanhasTimeZone()java.lang.StringtoString()-
Methods inherited from class com.skyhookwireless.wps.Location
getAltitude, getLatitude, getLongitude, getTime, hasAltitude, hasLatitude, hasLongitude, hasTime, setAltitude, setLatitude, setLongitude, setTime
-
-
-
-
Method Detail
-
getIP
public java.lang.String getIP()
- Returns:
- The IP address of the client as received by the server
-
getStreetAddress
public StreetAddress getStreetAddress()
- Returns:
- The physical street address,
only returned when the
WPSStreetAddressLookupparameter is set toWPS_LIMITED_STREET_ADDRESS_LOOKUPorWPS_FULL_STREET_ADDRESS_LOOKUP.
-
hasStreetAddress
public boolean hasStreetAddress()
- Returns:
trueif street address information is available- Since:
- 5.0
-
getTimeZone
public TimeZone getTimeZone()
- Returns:
- time zone information,
only returned when the
timeZoneLookupparameter is set totrue. - Since:
- 5.0
-
hasTimeZone
public boolean hasTimeZone()
- Returns:
trueif time zone information is available- Since:
- 5.0
-
-