public class GeoJsonPolygon extends java.lang.Object implements DataPolygon
com.google.android.gms.maps.model.LatLng
s.
The first array is the polygon exterior boundary. Subsequent arrays are holes.Constructor and Description |
---|
GeoJsonPolygon(java.util.List<? extends java.util.List<LatLng>> coordinates)
Creates a new GeoJsonPolygon object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends java.util.List<LatLng>> |
getCoordinates()
Gets a list of a list of coordinates of the GeoJsonPolygons
|
java.util.List<? extends java.util.List<LatLng>> |
getGeometryObject()
Gets the stored geometry object
|
java.lang.String |
getGeometryType()
Gets the type of geometry
|
java.util.ArrayList<java.util.ArrayList<LatLng>> |
getInnerBoundaryCoordinates()
Gets an array of arrays of inner boundary coordinates
|
java.util.ArrayList<LatLng> |
getOuterBoundaryCoordinates()
Gets an array of outer boundary coordinates
|
java.lang.String |
getType()
Gets the type of geometry.
|
java.lang.String |
toString() |
public GeoJsonPolygon(java.util.List<? extends java.util.List<LatLng>> coordinates)
coordinates
- list of list of coordinates of GeoJsonPolygon to storepublic java.lang.String getType()
public java.util.List<? extends java.util.List<LatLng>> getCoordinates()
public java.util.List<? extends java.util.List<LatLng>> getGeometryObject()
getGeometryObject
in interface Geometry
public java.lang.String getGeometryType()
getGeometryType
in interface Geometry
public java.util.ArrayList<LatLng> getOuterBoundaryCoordinates()
getOuterBoundaryCoordinates
in interface DataPolygon
public java.util.ArrayList<java.util.ArrayList<LatLng>> getInnerBoundaryCoordinates()
getInnerBoundaryCoordinates
in interface DataPolygon
public java.lang.String toString()
toString
in class java.lang.Object