-
- All Implemented Interfaces:
-
com.google.maps.android.data.DataPolygon,com.google.maps.android.data.Geometry
public class GeoJsonPolygon implements DataPolygon
A GeoJsonPolygon geometry contains an array of arrays of com.google.android.gms.maps.model.LatLngs. The first array is the polygon exterior boundary. Subsequent arrays are holes.
-
-
Constructor Summary
Constructors Constructor Description GeoJsonPolygon(List<out List<LatLng>> coordinates)Creates a new GeoJsonPolygon object
-
Method Summary
Modifier and Type Method Description StringgetType()Gets the type of geometry. List<out List<LatLng>>getCoordinates()Gets a list of a list of coordinates of the GeoJsonPolygons List<out List<LatLng>>getGeometryObject()Gets the stored geometry object StringgetGeometryType()Gets the type of geometry ArrayList<LatLng>getOuterBoundaryCoordinates()Gets an array of outer boundary coordinates ArrayList<ArrayList<LatLng>>getInnerBoundaryCoordinates()Gets an array of arrays of inner boundary coordinates StringtoString()-
Methods inherited from class com.google.maps.android.data.DataPolygon
getInnerBoundaryCoordinates, getOuterBoundaryCoordinates -
Methods inherited from class com.google.maps.android.data.Geometry
getGeometryObject -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getType
String getType()
Gets the type of geometry. The type of geometry conforms to the GeoJSON 'type'specification.
-
getCoordinates
List<out List<LatLng>> getCoordinates()
Gets a list of a list of coordinates of the GeoJsonPolygons
-
getGeometryObject
List<out List<LatLng>> getGeometryObject()
Gets the stored geometry object
-
getGeometryType
String getGeometryType()
Gets the type of geometry
-
getOuterBoundaryCoordinates
ArrayList<LatLng> getOuterBoundaryCoordinates()
Gets an array of outer boundary coordinates
-
getInnerBoundaryCoordinates
ArrayList<ArrayList<LatLng>> getInnerBoundaryCoordinates()
Gets an array of arrays of inner boundary coordinates
-
-
-
-