Point
public struct Point : Equatable, ForeignMemberContainer, Sendable
extension Point: Codable
extension Point: GeometryConvertible
extension Point: WKTConvertible
A Point geometry represents a single position.
-
The position at which the point is located.
This property has a plural name for consistency with RFC 7946. For convenience, it is represented by a
LocationCoordinate2D
instead of a dedicatedPosition
type.Declaration
Swift
public var coordinates: LocationCoordinate2D
-
Declaration
Swift
public var foreignMembers: JSONObject
-
Initializes a point defined by the given position.
Declaration
Swift
public init(_ coordinates: LocationCoordinate2D)
Parameters
coordinates
The position at which the point is located.
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public var geometry: Geometry { get }
-
Undocumented
Declaration
Swift
public var wkt: String { get }
-
Undocumented
Declaration
Swift
public init(wkt: String) throws