Package com.google.maps.android.data.kml
Class KmlPolygon
- java.lang.Object
-
- com.google.maps.android.data.kml.KmlPolygon
-
- All Implemented Interfaces:
DataPolygon<java.util.ArrayList<java.util.ArrayList<com.google.android.gms.maps.model.LatLng>>>,Geometry
public class KmlPolygon extends java.lang.Object implements DataPolygon<java.util.ArrayList<java.util.ArrayList<com.google.android.gms.maps.model.LatLng>>>
Represents a KML Polygon. Contains a single array of outer boundary coordinates and an array of arrays for the inner boundary coordinates.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGEOMETRY_TYPE
-
Constructor Summary
Constructors Constructor Description KmlPolygon(java.util.List<com.google.android.gms.maps.model.LatLng> outerBoundaryCoordinates, java.util.List<java.util.List<com.google.android.gms.maps.model.LatLng>> innerBoundaryCoordinates)Creates a new KmlPolygon object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.List<com.google.android.gms.maps.model.LatLng>>getGeometryObject()Gets the coordinates of the Polygonjava.lang.StringgetGeometryType()Gets the type of geometryjava.util.List<java.util.List<com.google.android.gms.maps.model.LatLng>>getInnerBoundaryCoordinates()Gets an array of arrays of inner boundary coordinatesjava.util.List<com.google.android.gms.maps.model.LatLng>getOuterBoundaryCoordinates()Gets an array of outer boundary coordinatesjava.lang.StringtoString()
-
-
-
Field Detail
-
GEOMETRY_TYPE
public static final java.lang.String GEOMETRY_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KmlPolygon
public KmlPolygon(java.util.List<com.google.android.gms.maps.model.LatLng> outerBoundaryCoordinates, java.util.List<java.util.List<com.google.android.gms.maps.model.LatLng>> innerBoundaryCoordinates)Creates a new KmlPolygon object- Parameters:
outerBoundaryCoordinates- single array of outer boundary coordinatesinnerBoundaryCoordinates- multiple arrays of inner boundary coordinates
-
-
Method Detail
-
getGeometryType
public java.lang.String getGeometryType()
Gets the type of geometry- Specified by:
getGeometryTypein interfaceGeometry- Returns:
- type of geometry
-
getGeometryObject
public java.util.List<java.util.List<com.google.android.gms.maps.model.LatLng>> getGeometryObject()
Gets the coordinates of the Polygon- Specified by:
getGeometryObjectin interfaceGeometry- Returns:
- ArrayList of an ArrayList of LatLng points
-
getOuterBoundaryCoordinates
public java.util.List<com.google.android.gms.maps.model.LatLng> getOuterBoundaryCoordinates()
Gets an array of outer boundary coordinates- Specified by:
getOuterBoundaryCoordinatesin interfaceDataPolygon<java.util.ArrayList<java.util.ArrayList<com.google.android.gms.maps.model.LatLng>>>- Returns:
- array of outer boundary coordinates
-
getInnerBoundaryCoordinates
public java.util.List<java.util.List<com.google.android.gms.maps.model.LatLng>> getInnerBoundaryCoordinates()
Gets an array of arrays of inner boundary coordinates- Specified by:
getInnerBoundaryCoordinatesin interfaceDataPolygon<java.util.ArrayList<java.util.ArrayList<com.google.android.gms.maps.model.LatLng>>>- Returns:
- array of arrays of inner boundary coordinates
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-