Package 

Class GeoJsonPolygon

  • 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
      String getType() 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
      String getGeometryType() 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
      String toString()
      • 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