SPLocationState

public enum SPLocationState : Codable

Indicates if the current location is sufficient for SDK to track data or not. Data will not be recorded when the location state is none.

It is important to have a good location to track turbulence data. Cellular devices have a built-in GPS and can have a stable location without an internet connection, but WiFi-only devices do not and need an internet connection or an external GPS receiver. When a device has poor location data (outdated or invalid) SDK will not track data and show the current position on the map. However, SDK tries to operate with a poor or shaky GPS signal as much as possible. SDK handles all location-related stuff out of the box.

  • The system location is used and it is fresh, accurate, and sufficient.

    Declaration

    Swift

    case good
  • dr

    The location is extrapolated from the last known system location and moving speed. Used when the location does not meet good internal SkyPath requirements. DR state can last for 1 minute and then switch to none.

    Declaration

    Swift

    case dr
  • The last system location is outdated, inaccurate, and not sufficient.

    Declaration

    Swift

    case none
  • The location received by SkyPath from an external provider is used and it is fresh, accurate, and sufficient.

    Declaration

    Swift

    case external
  • The location is extrapolated from the last known external state location and moving speed. Used when the location does not meet good internal SkyPath requirements. DR state can last for 1 minute and then switch to none.

    Declaration

    Swift

    case externalDr