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.String
getIP()
StreetAddress
getStreetAddress()
TimeZone
getTimeZone()
boolean
hasStreetAddress()
boolean
hasTimeZone()
java.lang.String
toString()
-
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
WPSStreetAddressLookup
parameter is set toWPS_LIMITED_STREET_ADDRESS_LOOKUP
orWPS_FULL_STREET_ADDRESS_LOOKUP
.
-
hasStreetAddress
public boolean hasStreetAddress()
- Returns:
true
if street address information is available- Since:
- 5.0
-
getTimeZone
public TimeZone getTimeZone()
- Returns:
- time zone information,
only returned when the
timeZoneLookup
parameter is set totrue
. - Since:
- 5.0
-
hasTimeZone
public boolean hasTimeZone()
- Returns:
true
if time zone information is available- Since:
- 5.0
-
-