Class GeometryGeoJson

java.lang.Object
com.mapbox.geojson.gson.GeometryGeoJson

public class GeometryGeoJson extends Object
This is a utility class that helps create a Geometry instance from a JSON string.
Since:
4.0.0
  • Constructor Details

    • GeometryGeoJson

      public GeometryGeoJson()
  • Method Details

    • fromJson

      public static Geometry fromJson(@NonNull 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