java.lang.Object
com.here.platform.data.client.model.geojson.Polygon
All Implemented Interfaces:
GeoJson, Geometry, GeometryItem, Serializable, scala.Equals, scala.Product

public final class Polygon extends Object implements GeometryItem, scala.Product, Serializable
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Polygon(String type, scala.Option<scala.collection.immutable.Seq<Object>> bbox, scala.Option<scala.collection.immutable.Seq<scala.collection.immutable.Seq<scala.collection.immutable.Seq<Object>>>> coordinates)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    scala.Option<scala.collection.immutable.Seq<Object>>
     
    scala.Option<scala.collection.immutable.Seq<scala.collection.immutable.Seq<scala.collection.immutable.Seq<Object>>>>
     
     
     
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface scala.Equals

    canEqual, equals

    Methods inherited from interface com.here.platform.data.client.model.geojson.GeoJson

    toJson, toPrettyJson

    Methods inherited from interface com.here.platform.data.client.model.geojson.Geometry

    checkBbox, checkCoordinate

    Methods inherited from interface scala.Product

    productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
  • Constructor Details

    • Polygon

      public Polygon(String type, scala.Option<scala.collection.immutable.Seq<Object>> bbox, scala.Option<scala.collection.immutable.Seq<scala.collection.immutable.Seq<scala.collection.immutable.Seq<Object>>>> coordinates)
  • Method Details

    • type

      public String type()
    • bbox

      public scala.Option<scala.collection.immutable.Seq<Object>> bbox()
    • coordinates

      public scala.Option<scala.collection.immutable.Seq<scala.collection.immutable.Seq<scala.collection.immutable.Seq<Object>>>> coordinates()
    • getType

      public String getType()
      Specified by:
      getType in interface Geometry
      Specified by:
      getType in interface GeometryItem
      Returns:
      the type of geometry
    • getBbox

      public List<Double> getBbox()
      Specified by:
      getBbox in interface Geometry
      Specified by:
      getBbox in interface GeometryItem
      Returns:
      the bounding box of the Polygon geometry
    • getCoordinates

      public List<List<List<Double>>> getCoordinates()
      Specified by:
      getCoordinates in interface GeometryItem
      Returns:
      the coordinates of the Polygon geometry