|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.veriplace.client.Position
com.veriplace.client.Location
public class Location
Representation of the location of a Veriplace user.
This class inherits all of the properties of Position, which always
include longitude and latitude
coordinates in degrees and an uncertainty radius in
meters. Geographic address information such as street address and city are
also included whenever possible.
Properties not inherited from Position are:
getId()) which can be used to requery the
same data using GetLocationAPI.getLocationById(com.veriplace.oauth.consumer.Token, User, long). creation timestamp indicating the date and
time that the location was generated. expiration date after which the location
must be discarded, as per the Veriplace Developer Terms of Service. PositionReference with a PointOfInterest
describing a nearby business or landmark (if you requested this information). PositionReference with a StreetIntersection
describing a nearby street intersection (if you requested this information).
| Constructor Summary | |
|---|---|
Location(java.lang.Long id,
java.util.Date creationDate,
java.util.Date expirationDate,
double longitude,
double latitude,
double uncertainty,
java.lang.String street,
java.lang.String neighborhood,
java.lang.String city,
java.lang.String state,
java.lang.String postal,
java.lang.String countryCode)
|
|
Location(long id,
java.util.Date creationDate,
java.util.Date expirationDate,
Position position)
|
|
Location(long id,
java.util.Date creationDate,
java.util.Date expirationDate,
Position position,
PositionReference<PointOfInterest> nearestPointOfInterest,
PositionReference<StreetIntersection> nearestIntersection)
|
|
| Method Summary | |
|---|---|
java.util.Date |
getCreationDate()
Get this location's creation date, which indicates whether the location represents a current or cached position. |
java.util.Date |
getExpirationDate()
Get this location's expiration date, which indicates when this location must be deleted. |
java.lang.Long |
getId()
Get this location's unique identifier, which may be used to retrieve its data without relying on external storage. |
PositionReference<StreetIntersection> |
getNearestIntersection()
Get a description of a nearby street intersection, including the distance and direction to it. |
PositionReference<PointOfInterest> |
getNearestPointOfInterest()
Get a description of a nearby business or landmark, including the distance and direction to it. |
| Methods inherited from class com.veriplace.client.Position |
|---|
getAddressLine, getCity, getCountryCode, getLatitude, getLongitude, getNeighborhood, getPostal, getState, getStreet, getStreet2, getUncertainty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location(long id,
java.util.Date creationDate,
java.util.Date expirationDate,
Position position)
public Location(long id,
java.util.Date creationDate,
java.util.Date expirationDate,
Position position,
PositionReference<PointOfInterest> nearestPointOfInterest,
PositionReference<StreetIntersection> nearestIntersection)
public Location(java.lang.Long id,
java.util.Date creationDate,
java.util.Date expirationDate,
double longitude,
double latitude,
double uncertainty,
java.lang.String street,
java.lang.String neighborhood,
java.lang.String city,
java.lang.String state,
java.lang.String postal,
java.lang.String countryCode)
| Method Detail |
|---|
public java.lang.Long getId()
Note that location updates will not generally have ids.
public java.util.Date getCreationDate()
public java.util.Date getExpirationDate()
public PositionReference<PointOfInterest> getNearestPointOfInterest()
This property will be null if you did not specifically request point-of-interest information in your original location request, or if no such point could be found.
public PositionReference<StreetIntersection> getNearestIntersection()
This property will be null if you did not specifically request street intersection information in your original location request, or if no such intersection could be found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||