ETAItem

public struct ETAItem

A model representing the ETA (Estimated Time of Arrival) item.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Initializes a new instance of ETAItem with default values.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public init()
  • Initializes a new instance of ETAItem with specified values.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public init(
        arrivalTimeText: String,
        distanceToDestinationText: String,
        distanceToDestinationUnitText: String,
        timeToDestinationText: String,
        timeToDestinationUnitText: String
    )

    Parameters

    arrivalTimeText

    The text representing the arrival time.

    distanceToDestinationText

    The text representing the distance to the destination.

    distanceToDestinationUnitText

    The text representing the unit of distance to the destination.

    timeToDestinationText

    The text representing the time to the destination.

    timeToDestinationUnitText

    The text representing the unit of time to the destination.

  • The text representing the arrival time.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var arrivalTimeText: String
  • The text representing the distance to the destination.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var distanceToDestinationText: String
  • The text representing the unit of distance to the destination.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var distanceToDestinationUnitText: String
  • The text representing the time to the destination.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var timeToDestinationText: String
  • The text representing the unit of time to the destination.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var timeToDestinationUnitText: String