Package com.ibm.cloud.cloudant.v1.model
Class GeoJsonGeometryObject
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.GeoJsonGeometryObject
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
GeoJsonGeometry
,GeoJsonGeometryCollection
public class GeoJsonGeometryObject extends com.ibm.cloud.sdk.core.service.model.GenericModel
Schema for a GeoJSON geometry object. Classes which extend this class: - GeoJsonGeometry - GeoJsonGeometryCollection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GeoJsonGeometryObject.Type
The type of GeoJSON Geometry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>
getCoordinates()
Gets the coordinates.List<GeoJsonGeometry>
getGeometries()
Gets the geometries.String
getType()
Gets the type.
-
-
-
Method Detail
-
getType
public String getType()
Gets the type. The type of GeoJSON Geometry.- Returns:
- the type
-
getCoordinates
public List<Object> getCoordinates()
Gets the coordinates. Used for all geometry types except `GeometryCollection`. The structure of the elements in the array varies by geometry type.- Returns:
- the coordinates
-
getGeometries
public List<GeoJsonGeometry> getGeometries()
Gets the geometries. Used for the `GeometryCollection` type.- Returns:
- the geometries
-
-