MBTrip

public class MBTrip : MBEvent

Trip event on the mobility timeline

  • Place where the trip has started

    Declaration

    Swift

    public private(set) var startPlace: MBPlace
  • Place where the trip has ended. nil if the trip is not finished yet

    Declaration

    Swift

    public private(set) var endPlace: MBPlace?
  • Segments of the trip (seperated by transport type)

    Declaration

    Swift

    public private(set) var segments: [MBSegment]
  • Route clusted ID

    Important

    Only available if the trips where clustered to routes

    Declaration

    Swift

    public var clusterId: Int?
  • Travelled distance of this trip

    Declaration

    Swift

    public var distance: CLLocationDistance { get }
  • Number of waypoints of all segments

    Declaration

    Swift

    public var waypoints: [CLLocationCoordinate2D] { get }