Array

struct Array<Element>
  • Initializes a [CLLocation] from a JSON string at a given filePath.

    The JSON string must conform to the following structure: [{ latitude: 37.8, // latitude or lat longitude: -122.4 // longitude, lng, or lon verticalAccuracy: 4, speed: 21.0 horizontalAccuracy: 5, course: 0.48 timestamp: 1497475447, // timestamp as unix timestamp or ISO8601Date altitude: 57.26 }]

    Declaration

    Swift

    public static func locations(from filePath: String) -> [CLLocation]!

    Parameters

    filePath

    The file’s path.

    Return Value

    A [CLLocation].