|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.server.context.GeoPosition
public class GeoPosition
Position class representing a latitude/longitude position on the surface of the earth.
| Field Summary | |
|---|---|
double |
lat
Position latitude, in decimal degrees. |
double |
lon
Position longitude, in decimal degrees. |
| Constructor Summary | |
|---|---|
GeoPosition(double lat,
double lon)
JSON-driven constructor. |
|
| Method Summary | |
|---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this position for transmission or persistence. |
static void |
setPosition(BasicObject obj,
double lat,
double lon)
Generate a new geo-position and assign it to an object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final double lat
public final double lon
| Constructor Detail |
|---|
@JSONMethod(value={"lat","lon"})
public GeoPosition(double lat,
double lon)
lat - Latitude (decimal degrees)lon - Longitude (decimal degrees)| Method Detail |
|---|
public JSONLiteral encode(EncodeControl control)
encode in interface Encodablecontrol - Encode control determining what flavor of encoding
should be done.
public static void setPosition(BasicObject obj,
double lat,
double lon)
obj - The object to be given the new positionlat - The new latitudelon - The new longitudepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||