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.
Returns a Bool
value indicating whether two values are equal.
Equality is the inverse of inequality. For any values a
and b
,
a == b
implies that a != b
is false
.
Declaration
Swift
public static func == (lhs: GeoJSON, rhs: GeoJSON) -> Bool
Parameters
lhs
|
A value to compare. |
rhs
|
Another value to compare. |
Return Value
True if coordinates for both GeoJSON elements are equal.
Information about the coordinates of an element.
Declaration
Swift
public var coordinates: CoordinateType
Generic type of the coordinates of the GeoJSON
instance.
Declaration
Swift
public typealias CoordinateType = T
Creates a GeoJSON
instance.
Declaration
Swift
public init(coordinates: CoordinateType)
Parameters
coordinates
|
coordinates representing the geometry of the GeoJSON element. |