Contents

decode(_:)

Decodes the provided data into native MapKit types that a map can display.

Declaration

func decode(_ data: Data) throws -> [any MKGeoJSONObject]

Parameters

  • data:

    An Nsdata object that contains the JSON to decode.

Return Value

An array of MKGeoJSONObject objects, or an error if the decoder encounters an issue.