Feature
public struct Feature : Decodable
Feature
Important
This is a Public Preview API. It may be changed or removed at any time.-
Create a new
Feature
Declaration
Swift
public init(type: String, properties: [String : Any]?, geometry: Geometry?, id: String, bbox: [Double])
Parameters
type
Feature type.
properties
Properties object.
geometry
Object representing geometry.
id
ID of the feature.
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Feature type.
Declaration
Swift
public let type: String
-
Properties object.
Declaration
Swift
public let properties: [String : Any]?
-
Object representing geometry.
Declaration
Swift
public let geometry: Geometry?
-
ID of the feature.
Declaration
Swift
public let id: String
-
Bounding box
Declaration
Swift
public let bbox: [Double]