Geometry
public struct Geometry
extension Geometry: Equatable
                The Geometry struct represents a single geometric entity according to the
GeoJSON specification.
- 
                  
                  
Creates a
Geometryinstance representing a Geometry Collection type.Declaration
Swift
public init(type: Geometry.GeometryType, geometries: GeometryCollection)Parameters
typeThe type of geometry, which should be a
geometryCollectionin this context.geometriesA
GeometryCollectionobject that encapsulates a list ofGeometryinstances. 
- 
                  
                  
The
See moreGeometryTypeenumeration represents the seven geometry types defined by the GeoJSON specification.Declaration
Swift
public enum GeometryType - 
                  
                  
The type of this
Geometryinstance.Declaration
Swift
public let type: GeometryType - 
                  
                  
Contains the coordinates of the geometric entity when the
Geometryis not a collection. This isnilfor a Geometry Collection type.Declaration
Swift
public let coordinates: GeoJSONGeometry? - 
                  
                  
Contains a collection of
Geometryinstances when thisGeometryrepresents a Geometry Collection. This isnilfor other types.Declaration
Swift
public let geometries: GeometryCollection? 
- 
                  
                  
Equatable implementation.
Declaration
Swift
public static func == (lhs: TomTomSDKCommon.Geometry, rhs: TomTomSDKCommon.Geometry) -> Bool 
        
 
          TomTom SDK for iOS (0.40.0)
        
          Geometry