TKGeoJSON

public enum TKGeoJSON
extension TKGeoJSON: Decodable

Top-level struct representing a GeoJSON, which is either a (geometrical) feature or a collection there-of.

For specs see https://tools.ietf.org/html/rfc7946

Warning

Only implements a subset of GeoJSON

  • collection: GeoJSON’s “FeatureCollection” type

  • feature: GeoJSON’s “Feature” type

Codable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws