code: public static Geometry getGeometryValue(JSONObject jsonObject, String key) throws JSONException {
  		checkArguments(jsonObject, key);
  		JSONValue value = jsonObject.get(key);
  		if (value != null && value.isObject() != null) {
  			JSONObject obj = value.isObject();
  			String type = JsonService.getStringValue(obj, "type");
  			Geometry geometry = new Geometry(type, 0, 5);
  			JSONArray array = JsonService.getChildArray(obj, "coordinates");
  			switch (GeometryType.fromValue(type)) {
  				case POINT:
  					parseSimple(GeometryType.POINT, geometry, array);
  					break;
  				case LINESTRING:
  					parseSimple(GeometryType.LINEARRING, geometry, array);
  					break;
  				case MULTILINESTRING:
  					parseCollection(GeometryType.LINESTRING, geometry, array);
  					break;
  				case MULTIPOINT:
  					parseCollection(GeometryType.POINT, geometry, array);
  					break;
  				case MULTIPOLYGON:
  					parseCollection(GeometryType.POLYGON, geometry, array);
  					break;
  				case POLYGON:
  					parseCollection(GeometryType.LINEARRING, geometry, array);
  					break;
  				default:
  					break;
  			}
  			return geometry;
  		}
  		return null;
  	}
docs: Get a geometry value from a {@link JSONObject}.
  
  @param jsonObject The object to get the key value from.
  @param key The name of the key to search the value for.
  @return Returns the value for the key in the object or null.
  @throws JSONException Thrown in case the key could not be found in the JSON object, or if the date could not be
  parsed correctly.