Array

public extension Array where Element == TurbulenceItem

Available where Element == TurbulenceItem

  • Converts the array of TurbulenceItem to a valid GeoJSON that can be visualized on the map. Can be used when you have a custom filtering of TurbulenceItem but need a GeoJSON for the map.

    Declaration

    Swift

    func geoJSON(withType type: TurbulenceResultType) -> String

    Parameters

    type

    The feature geometry of turbulence in GeoJSON can be different for own (circle) and server (hexagon) turbulence.