Step

public struct Step : Decodable, Hashable
extension Step: CustomDebugStringConvertible
extension Step: CustomStringConvertible
  • Declaration

    Swift

    public let name: String?
  • Declaration

    Swift

    public let number: Int
  • Declaration

    Swift

    public let coordinate: Coordinate
  • In radians

    Declaration

    Swift

    public let angle: Double
  • In radians

    Declaration

    Swift

    public let previousBearing: Double
  • In radians

    Declaration

    Swift

    public let nextBearing: Double
  • In meters

    Declaration

    Swift

    public let distance: CLLocationDistance
  • In seconds

    Declaration

    Swift

    public let duration: TimeInterval
  • Declaration

    Swift

    public let levelChange: LevelChange?
  • Declaration

    Swift

    public let isFirstStep: Bool
  • Declaration

    Swift

    public let isLastStep: Bool
  • Declaration

    Swift

    public let extras: Extras
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Provides localized navigation instructions for this step

    Declaration

    Swift

    public func getNavigationInstructions(locale: Locale? = .current, includeStreetNames: Bool = true) -> NavigationInstructions

    Parameters

    locale

    The desired locale for getting the localized instruction text. Default is .current

    includeStreetNames

    Determines whether the instructions should include street names. Default is true

  • Declaration

    Swift

    public struct Extras : Decodable, Hashable

CustomDebugStringConvertible

  • Declaration

    Swift

    public var debugDescription: String { get }

CustomStringConvertible

  • Declaration

    Swift

    public var description: String { get }