Package com.mapbox.geojson.gson
Class GeometryGeoJson
java.lang.Object
com.mapbox.geojson.gson.GeometryGeoJson
This is a utility class that helps create a Geometry instance from a JSON string.
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GeometryGeoJson
public GeometryGeoJson()
-
-
Method Details
-
fromJson
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
-