Class Geography

    • Method Detail

      • equals

        public boolean equals​(Object other)
        Checks whether two Geography object are equal.
        Overrides:
        equals in class Object
        Parameters:
        other - A Geography object
        Returns:
        true if these two object are equal
      • hashCode

        public int hashCode()
        Calculates the hash code of this Geography Object.
        Overrides:
        hashCode in class Object
        Returns:
        An int number representing the hash code value
        Since:
        0.9.0
      • asGeoJSON

        public String asGeoJSON()
        Converts this Geography object to a GeoJSON string.
        Returns:
        A GeoJSON string.
        Since:
        0.8.0
      • toString

        public String toString()
        Converts this Geography object to a String value. alias of asGeoJson function.
        Overrides:
        toString in class Object
        Returns:
        A String value.
      • fromGeoJSON

        public static Geography fromGeoJSON​(String g)
        Creates a Geography object from a GeoJSON string.
        Parameters:
        g - GeoJSON String
        Returns:
        a new Geography object
        Since:
        0.8.0