Package com.mapbox.geojson.gson
Class GeometryGeoJson
- java.lang.Object
-
- com.mapbox.geojson.gson.GeometryGeoJson
-
public class GeometryGeoJson extends java.lang.ObjectThis is a utility class that helps create a Geometry instance from a JSON string.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description GeometryGeoJson()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeometryfromJson(java.lang.String json)Create a new instance of Geometry class by passing in a formatted valid JSON String.
-
-
-
Method Detail
-
fromJson
public static Geometry fromJson(@NonNull java.lang.String json)
Create a new instance of Geometry class by passing in a formatted valid JSON String.- Parameters:
json- a formatted valid JSON string defining a GeoJson Geometry- Returns:
- a new instance of Geometry class defined by the values passed inside this static factory method
- Since:
- 4.0.0
-
-