# GMTCTripModelSubscriber

    @protocol GMTCTripModelSubscriber <NSObject>

A subscriber protocol for GMTCTripModel's event update.
- `


  ### [-tripModel:didUpdateModelState:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateModelState:)


  ` Called when the trip session state has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdate sessionState: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTCTripModelState.html)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateModelState:(enum https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTCTripModelState.html)sessionState;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of GMTCTripModel that generated the event. |
  | ` sessionState ` | The new session state. |

- `


  ### [-tripModel:didUpdateTrip:updatedPropertyFields:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateTrip:updatedPropertyFields:)


  ` Called when the current trip has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdate trip: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTrip.html?, updatedPropertyFields: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripPropertyFields.html)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
                  didUpdateTrip:(nullable https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTrip.html *)trip
          updatedPropertyFields:(https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripPropertyFields.html)updatedPropertyFields;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of GMTCTripModel that generated the event. |
  | ` trip ` | The trip that has changed. |
  | ` updatedPropertyFields ` | The updated properties. |

- `


  ### [-tripModel:didUpdateTripStatus:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateTripStatus:)


  ` Called when the current trip status has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdate tripStatus: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripStatus.html)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateTripStatus:(enum https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripStatus.html)tripStatus;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of GMTCTripModel that generated the event. |
  | ` tripStatus ` | The updated trip status. |

- `


  ### [-tripModel:didUpdateVehicleLocation:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateVehicleLocation:)


  ` Called when the vehicle's location has been updated. The new location may not be different from
  the previous one.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdate vehicleLocation: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleLocation.html?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateVehicleLocation:(nullable https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleLocation.html *)vehicleLocation;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of GMTCTripModel that generated the event. |
  | ` vehicleLocation ` | The last known vehicle location of the current trip. |

- `


  ### [-tripModel:didUpdatePickupLocation:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdatePickupLocation:)


  ` Called when the pickup location has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdatePickupLocation pickupLocation: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTerminalLocation.html?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdatePickupLocation:(nullable https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTerminalLocation.html *)pickupLocation;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of GMTCTripModel that generated the event. |
  | ` pickupLocation ` | The current pickup location. This could be nil if the trip was reset or cancelled. |

- `


  ### [-tripModel:didUpdateDropoffLocation:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateDropoffLocation:)


  ` Called when the dropoff location has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateDropoffLocation dropoffLocation: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTerminalLocation.html?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateDropoffLocation:(nullable https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTerminalLocation.html *)dropoffLocation;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` dropoffLocation ` | The current dropoff location. This could be nil if the trip was reset or cancelled. |

- `


  ### [-tripModel:didUpdateETAToNextWaypoint:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateETAToNextWaypoint:)


  ` Called when the ETA to the next waypoint is updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateETAToNextWaypoint nextWaypointETA: TimeInterval)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateETAToNextWaypoint:(NSTimeInterval)nextWaypointETA;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` nextWaypointETA ` | The driver's current ETA to the pickup point. This could be 0 if the trip was reset or cancelled. |

- `


  ### [-tripModel:didUpdatePickupETA:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdatePickupETA:)


  ` Called when the driver's ETA to the pickup point is updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdatePickupETA pickupETA: TimeInterval)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdatePickupETA:(NSTimeInterval)pickupETA;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` pickupETA ` | The driver's current ETA to the pickup point. This could be 0 if the trip was either reset or cancelled. |

- `


  ### [-tripModel:didUpdateDropoffETA:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateDropoffETA:)


  ` Called when the driver's ETA to the dropoff point is updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateDropoffETA dropoffETA: TimeInterval)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateDropoffETA:(NSTimeInterval)dropoffETA;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` dropoffETA ` | The driver's current ETA to the drop-off point. This could be 0 if the trip was either reset or cancelled. |

- `


  ### [-tripModel:didUpdateActiveRouteRemainingDistance:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateActiveRouteRemainingDistance:)


  ` Called when the remaining distance of the trip's active route has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateActiveRouteRemainingDistance activeRouteRemainingDistance: Int32)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateActiveRouteRemainingDistance:(int32_t)activeRouteRemainingDistance;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` activeRouteRemainingDistance ` | Distance in meters that remains on the active route between the current location of the vehicle and the next significant location. The next significant location depends on the status of the current trip. If the trip status is `GMTSTripStatusEnrouteToPickup`, this is the distance to the pickup location. If the trip status is `GMTSTripStatusEnrouteToDropoff`, this is the distance to the drop off location. Your app must provide any necessary measurement conversions. |

- `


  ### [-tripModel:didUpdateActiveRoute:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateActiveRoute:)


  ` Called when the active route segment of the trip has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateActiveRoute activeRoute: [https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSLatLng.html]?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateActiveRoute:(nullable NSArray<https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSLatLng.html *> *)activeRoute;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` activeRoute ` | The active route segment of the current trip. This segment includes the route from the current location of the vehicle to the next significant location. If the trip status is `GMTSTripStatusEnrouteToPickup`, the next significant location is the pickup location. If the trip status is `GMTSTripStatusEnrouteToDropoff`, the next significant location is the drop off location. |

- `


  ### [-tripModel:didUpdateRemainingRoute:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateRemainingRoute:)


  ` Called when the remaining route segment of the trip has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateRemainingRoute remainingRoute: [https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSLatLng.html]?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateRemainingRoute:(nullable NSArray<https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSLatLng.html *> *)remainingRoute;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` remainingRoute ` | The remaining route segment of the current trip. This segment includes the route from the current user's next destination to the user's final destination. If the trip status is `GMTSTripStatusEnrouteToPickup`, the remaining route segment will be the segment from the pickup location to the drop-off location. |

- `


  ### [-tripModel:didUpdateRemainingRouteDistance:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateRemainingRouteDistance:)


  ` Called when the distance of the trip's remaining route has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateRemainingRouteDistance remainingRouteDistance: Int32)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateRemainingRouteDistance:(int32_t)remainingRouteDistance;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` remainingRouteDistance ` | Distance in meters of the remaining route between the current user's next destination to their final destination. The next destination depends on the status of the current trip. If the trip status is `GMTSTripStatusEnrouteToPickup`, the next destination is the drop-off location. Your app must provide any necessary measurement conversions. |

- `


  ### [-tripModel:didUpdateRemainingWaypoints:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateRemainingWaypoints:)


  ` Called when the trip's intermediate waypoints have been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateRemaining remainingWaypoints: [https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTripWaypoint.html]?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateRemainingWaypoints:
              (nullable NSArray<https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTripWaypoint.html *> *)remainingWaypoints;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` remainingWaypoints ` | The current remaining waypoints. |

- `


  ### [-tripModel:didUpdateIntermediateDestinations:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateIntermediateDestinations:)


  ` Called when the trip's waypoints have been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateIntermediateDestinations intermediateDestinations: [https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTerminalLocation.html]?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateIntermediateDestinations:
              (nullable NSArray<https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTerminalLocation.html *> *)intermediateDestinations;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` intermediateDestinations ` | The current remaining intermediate waypoints for this trip. |

- `


  ### [-tripModel:didUpdateActiveRouteTraffic:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateActiveRouteTraffic:)


  ` Called when traffic data has been updated for the active route segment of the trip.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateActiveRouteTraffic activeRouteTraffic: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTrafficData.html?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateActiveRouteTraffic:(nullable https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTrafficData.html *)activeRouteTraffic;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` activeRouteTraffic ` | The active route traffic segment of the current trip. This segment includes the route from the current location of the vehicle to the next significant location. If the trip status is `GMTSTripStatusEnrouteToPickup`, the next significant location is the pickup location. If the trip status is `GMTSTripStatusEnrouteToDropoff`, the next significant location is the drop off location. |

- `


  ### [-tripModel:didUpdateRemainingRouteTraffic:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didUpdateRemainingRouteTraffic:)


  ` Called when traffic data has been updated for the remaining route segment of the trip.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didUpdateRemainingRouteTraffic remainingRouteTraffic: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTrafficData.html?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didUpdateRemainingRouteTraffic:
              (nullable https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSTrafficData.html *)remainingRouteTraffic;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` remainingRouteTraffic ` | The traffic data for the remaining route segment of the current trip. |

- `


  ### [-tripModel:didFailUpdateTripWithError:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCTripModelSubscriber#/c:objc(pl)GMTCTripModelSubscriber(im)tripModel:didFailUpdateTripWithError:)


  ` Called when the trip monitoring request error has been updated.

  #### Declaration

  Swift

      optional func tripModel(_ tripModel: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html, didFailUpdateTripWithError error: (any Error)?)

  Objective-C

      - (void)tripModel:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html *)tripModel
          didFailUpdateTripWithError:(nullable NSError *)error;

  #### Parameters

  |---|---|
  | ` tripModel ` | The instance of `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCTripModel.html` that generated the event. |
  | ` error ` | The error of the current trip monitoring request. The value could be nil. |