GeoJSONObject
public enum GeoJSONObject : Equatable, Sendable
extension GeoJSONObject: Codable
extension GeoJSONObject: GeoJSONObjectConvertible
A GeoJSON object represents a Geometry, Feature, or collection of Features.
Note
Foreign members which may be present inside are coded only if usedJSONEncoder or JSONDecoder has userInfo[.includesForeignMembers] = true.
-
A Geometry object represents points, curves, and surfaces in coordinate space.
Declaration
Swift
case geometry(_: Geometry)Parameters
geometryThe GeoJSON object as a Geometry object.
-
A Feature object represents a spatially bounded thing.
Declaration
Swift
case feature(_: Feature)Parameters
featureThe GeoJSON object as a Feature object.
-
A FeatureCollection object is a collection of Feature objects.
Declaration
Swift
case featureCollection(_: FeatureCollection)Parameters
featureCollectionThe GeoJSON object as a FeatureCollection object.
-
Initializes a GeoJSON object representing the given GeoJSON object–convertible instance.
Declaration
Swift
public init(_ object: GeoJSONObjectConvertible) -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Declaration
Swift
public var geoJSONObject: GeoJSONObject { get }
View on GitHub
Install in Dash
GeoJSONObject Enumeration Reference