GeoJSON
public struct GeoJSON<T>
extension GeoJSON: Equatable where T: Equatable
                Generic container for GeoJSON geometry types.
GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON). It defines several types of JSON objects and the manner in which they are combined to represent data about geographic features, their properties, and their spatial extents. For more info on the GeoJSON format see the following document.
- 
                  
                  
Creates a
GeoJSONinstance.Declaration
Swift
public init(coordinates: CoordinateType)Parameters
coordinatescoordinates representing the geometry of the GeoJSON element.
 
- 
                  
                  
Generic type of the coordinates of the
GeoJSONinstance.Declaration
Swift
public typealias CoordinateType = T - 
                  
                  
Information about the coordinates of an element.
Declaration
Swift
public var coordinates: CoordinateType 
- 
                  
                  
Returns a
Boolvalue indicating whether two values are equal.Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Swift
public static func == (lhs: GeoJSON, rhs: GeoJSON) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
Return Value
True if coordinates for both GeoJSON elements are equal.
 
        
 
          TomTom SDK for iOS (0.40.0)
        
          GeoJSON