public class Point extends Geometry
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<Point> |
CREATOR |
JSON_COORDINATESJSON_TYPECONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
Point() |
Point(double latitude,
double longitude) |
Point(double latitude,
double longitude,
double altitude) |
Point(JSONArray position) |
Point(JSONObject json) |
Point(Position position) |
| Modifier and Type | Method and Description |
|---|---|
Position |
getPosition() |
String |
getType()
The type of GeoJSON object.
|
void |
setPosition(JSONArray position) |
void |
setPosition(Position position) |
JSONObject |
toJSON()
Formats the object's attributes as GeoJSON.
|
describeContents, readParcel, writeToParcelpublic static final Parcelable.Creator<Point> CREATOR
public Point()
public Point(JSONObject json)
public Point(JSONArray position)
public Point(Position position)
public Point(double latitude,
double longitude)
public Point(double latitude,
double longitude,
double altitude)
public Position getPosition()
public void setPosition(Position position)
public void setPosition(JSONArray position)
public String getType()
GeoJSONObjectGeoJSON, such as GeoJSON.TYPE_FEATURE.getType in class GeoJSONObjectpublic JSONObject toJSON() throws JSONException
GeometrytoJSON in class GeometryJSONObjectJSONException