ItineraryPoint

public struct ItineraryPoint

Represents the point of the route

  • Creates an instance of ItineraryPoint, given a Place object.

    Declaration

    Swift

    public init(place: Place, heading: Measurement<UnitAngle>? = nil)
  • Creates an instance of ItineraryPoint, given a coordinate and address of a place.

    Note

    See Place for more details on location parameters.

    Declaration

    Swift

    public init(
        coordinate: CLLocationCoordinate2D,
        name: String? = nil,
        address: Address? = nil,
        heading: Measurement<UnitAngle>? = nil
    )

    Parameters

    coordinate

    The coordinate of the itinerary point.

    name

    The name of the place of the itinerary point.

    address

    The Address information about the place of the itinerary point.

    heading

    The direction in which we want to arrive and depart at this point, measured clockwise from North.

  • id

    An unique identifier of the itinerary point

    Declaration

    Swift

    public let id: UUID
  • A Place which represents ItineraryPoint

    Declaration

    Swift

    public var place: Place
  • The direction in which we want to arrive and depart at this point, measured clockwise from North

    Declaration

    Swift

    public var heading: Measurement<UnitAngle>?