Class Point


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Point
    extends Object
    A [GeoJson Point](https://tools.ietf.org/html/rfc7946#section-3.1.2) geometry object.
    • Constructor Detail

      • Point

        public Point()
    • Method Detail

      • addCoordinatesItem

        public Point addCoordinatesItem​(BigDecimal coordinatesItem)
      • getCoordinates

        @Nonnull
        public List<BigDecimal> getCoordinates()
        A [GeoJson Position](https://tools.ietf.org/html/rfc7946#section-3.1.1) in the format `[longitude,latitude]`.
        Returns:
        coordinates
      • setCoordinates

        public void setCoordinates​(List<BigDecimal> coordinates)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to Point
      • fromJson

        public static Point fromJson​(String jsonString)
                              throws IOException
        Create an instance of Point given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Point
        Throws:
        IOException - if the JSON string is invalid with respect to Point
      • toJson

        public String toJson()
        Convert an instance of Point to an JSON string
        Returns:
        JSON string