public abstract class GeoJSONObject extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<GeoJSONObject> |
CREATOR |
static String |
JSON_TYPE |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
GeoJSONObject() |
GeoJSONObject(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
abstract String |
getType()
The type of GeoJSON object.
|
protected static GeoJSONObject |
readParcel(Parcel parcel) |
JSONObject |
toJSON()
Formats the object's attributes as GeoJSON.
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final String JSON_TYPE
public static final Parcelable.Creator<GeoJSONObject> CREATOR
public GeoJSONObject()
public GeoJSONObject(JSONObject json)
protected static GeoJSONObject readParcel(Parcel parcel)
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic abstract String getType()
GeoJSON, such as GeoJSON.TYPE_FEATURE.public JSONObject toJSON() throws JSONException
JSONObjectJSONException