# GeoJSONGeometry

``public enum GeoJSONGeometry``
``extension GeoJSONGeometry: Equatable``

`GeoJSONGeometry` is an enumeration representing the seven geometry types defined in the GeoJSON format. Each case of the enum wraps a corresponding structure that provides detailed geometric data.

• ``` pointGeometry(_:) ```

Represents a single geographical point in 2D space.

#### Declaration

Swift

``case pointGeometry(PointGeometry)``
• ``` multiPointGeometry(_:) ```

Represents a collection of geographical points. This can be used to define a set of disconnected locations.

#### Declaration

Swift

``case multiPointGeometry(MultiPointGeometry)``
• ``` lineStringGeometry(_:) ```

Represents a line in geographical space. It is defined by two or more points, with the line passing through them in the order they are provided.

#### Declaration

Swift

``case lineStringGeometry(LineStringGeometry)``
• ``` multiLineStringGeometry(_:) ```

Represents a collection of LineStrings. This can be used to define a set of disconnected or intersecting lines.

#### Declaration

Swift

``case multiLineStringGeometry(MultiLineStringGeometry)``
• ``` polygonGeometry(_:) ```

Represents a polygon, defined by a list of points that form a closed LineString. This is typically used to define a geographical area.

#### Declaration

Swift

``case polygonGeometry(PolygonGeometry)``
• ``` multiPolygonGeometry(_:) ```

Represents a collection of polygons. This can be used to define a set of disconnected or overlapping areas.

#### Declaration

Swift

``case multiPolygonGeometry(MultiPolygonGeometry)``
• ``` geometryCollection(_:) ```

Represents a collection of different types of geometrical objects. This allows for the representation of complex structures comprising different geometry types.

#### Declaration

Swift

``case geometryCollection(GeometryCollection)``
• ``` ==(_:_:) ```

Equatable implementation.

#### Declaration

Swift

``public static func == (lhs: GeoJSONGeometry, rhs: GeoJSONGeometry) -> Bool``