     // inter-app actions from TripKitInterApp
      if #available(iOS 13.0, *) {
       TKUITripOverviewCard.config.segmentActionsfactory = { segment in
-        TKInterAppCommunicator.shared
-          .externalActions(for: segment)
-          .map { SegmentExternalAction(segment: segment, action: $0) }
+        var actions = [TKUITripOverviewCardAction]()
+        
+        for action in TKInterAppCommunicator.shared.externalActions(for: segment) {
+          actions.append(SegmentExternalAction(segment: segment, action: action))
+        }
+        
+        if TKInterAppCommunicator.canOpenInMapsApp(segment) {
+          actions.append(SegmentDirectionsAction(segment: segment))
+        }
+        return actions
       }
     }
     

  }
}


  let segment: TKSegment
  let action: TKInterAppCommunicator.ExternalAction
  
  var title: String { action.title }
  
  var icon: UIImage {
    switch action.type {
