Modifier and Type | Field and Description |
---|---|
double |
lat
Position latitude, in decimal degrees.
|
double |
lon
Position longitude, in decimal degrees.
|
Constructor and Description |
---|
GeoPosition(double lat,
double lon)
JSON-driven constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
public final double lat
public final double lon
@JSONMethod(value={"lat","lon"}) public GeoPosition(double lat, double lon)
lat
- Latitude (decimal degrees)lon
- Longitude (decimal degrees)public JSONLiteral encode(EncodeControl control)
public static void setPosition(BasicObject obj, double lat, double lon)
obj
- The object to be given the new positionlat
- The new latitudelon
- The new longitudeCopyright © 2017. All rights reserved.