Class GeoObject

    • Constructor Detail

      • GeoObject

        protected GeoObject​(GeoBoundingBox boundingBox,
                            Map<String,​Object> customProperties)
        Creates a GeoObject instance.
        Parameters:
        boundingBox - Optional bounding box of the GeoObject.
        customProperties - Optional additional properties to associate to the GeoObject.
    • Method Detail

      • getType

        public abstract GeoObjectType getType()
        Gets the GeoJSON type for this object.
        Returns:
        The GeoJSON type for this object.
      • getCustomProperties

        public final Map<String,​Object> getCustomProperties()
        Additional properties about this GeoObject.
        Returns:
        An unmodifiable representation of the additional properties associated with this GeoObject.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object