Tracking information for the stops that the assigned vehicle will make before it completes this Task. Note that this list can contain stops from other tasks. The first segment, Task.journey_sharing_info.remaining_vehicle_journey_segments[0] (gRPC) or Task.journeySharingInfo.remainingVehicleJourneySegments[0] (REST), contains route information from the driver's last known location to the upcoming VehicleStop. Current route information usually comes from the driver app, except for some cases noted in the documentation for DeliveryVehicle.current_route_segment. The other segments in Task.journey_sharing_info.remaining_vehicle_journey_segments (gRPC) or Task.journeySharingInfo.remainingVehicleJourneySegments (REST) are populated by Fleet Engine. They provide route information between the remaining VehicleStops.
Indicates the vehicle's last reported location of the assigned vehicle.
↳ last_location_snappable
bool
Indicates whether the vehicle's lastLocation can be snapped to the current_route_segment. This value is False if either last_location or current_route_segment don't exist. This value is computed by Fleet Engine. Updates from clients are ignored.
getRemainingVehicleJourneySegments
Tracking information for the stops that the assigned vehicle will make
before it completes this Task. Note that this list can contain stops
from other tasks.
The first segment,
Task.journey_sharing_info.remaining_vehicle_journey_segments[0] (gRPC)
or Task.journeySharingInfo.remainingVehicleJourneySegments[0] (REST),
contains route information from the driver's last known location to the
upcoming VehicleStop. Current route information usually comes from the
driver app, except for some cases noted in the documentation for
DeliveryVehicle.current_route_segment.
The other segments in
Task.journey_sharing_info.remaining_vehicle_journey_segments (gRPC) or
Task.journeySharingInfo.remainingVehicleJourneySegments (REST) are
populated by Fleet Engine. They provide route information between the
remaining VehicleStops.
Tracking information for the stops that the assigned vehicle will make
before it completes this Task. Note that this list can contain stops
from other tasks.
The first segment,
Task.journey_sharing_info.remaining_vehicle_journey_segments[0] (gRPC)
or Task.journeySharingInfo.remainingVehicleJourneySegments[0] (REST),
contains route information from the driver's last known location to the
upcoming VehicleStop. Current route information usually comes from the
driver app, except for some cases noted in the documentation for
DeliveryVehicle.current_route_segment.
The other segments in
Task.journey_sharing_info.remaining_vehicle_journey_segments (gRPC) or
Task.journeySharingInfo.remainingVehicleJourneySegments (REST) are
populated by Fleet Engine. They provide route information between the
remaining VehicleStops.
Indicates whether the vehicle's lastLocation can be snapped to
the current_route_segment. This value is False if either
last_location or current_route_segment don't exist. This value is
computed by Fleet Engine. Updates from clients are ignored.
Returns
Type
Description
bool
setLastLocationSnappable
Indicates whether the vehicle's lastLocation can be snapped to
the current_route_segment. This value is False if either
last_location or current_route_segment don't exist. This value is
computed by Fleet Engine. Updates from clients are ignored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Maps FleetEngine Delivery V1 Client - Class JourneySharingInfo (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine-delivery/latest/V1.Task.JourneySharingInfo)\n- [0.4.0](/php/docs/reference/maps-fleetengine-delivery/0.4.0/V1.Task.JourneySharingInfo)\n- [0.3.1](/php/docs/reference/maps-fleetengine-delivery/0.3.1/V1.Task.JourneySharingInfo)\n- [0.2.0](/php/docs/reference/maps-fleetengine-delivery/0.2.0/V1.Task.JourneySharingInfo)\n- [0.1.8](/php/docs/reference/maps-fleetengine-delivery/0.1.8/V1.Task.JourneySharingInfo) \nReference documentation and code samples for the Google Maps FleetEngine Delivery V1 Client class JourneySharingInfo.\n\nJourney sharing specific fields.\n\nGenerated from protobuf message `maps.fleetengine.delivery.v1.Task.JourneySharingInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ Delivery \\\\ V1 \\\\ Task\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRemainingVehicleJourneySegments\n\nTracking information for the stops that the assigned vehicle will make\nbefore it completes this Task. Note that this list can contain stops\nfrom other tasks.\n\nThe first segment,\n`Task.journey_sharing_info.remaining_vehicle_journey_segments[0]` (gRPC)\nor `Task.journeySharingInfo.remainingVehicleJourneySegments[0]` (REST),\ncontains route information from the driver's last known location to the\nupcoming `VehicleStop`. Current route information usually comes from the\ndriver app, except for some cases noted in the documentation for\n[DeliveryVehicle.current_route_segment](/php/docs/reference/maps-fleetengine-delivery/latest/V1.DeliveryVehicle#_Google_Maps_FleetEngine_Delivery_V1_DeliveryVehicle__getCurrentRouteSegment__).\nThe other segments in\n`Task.journey_sharing_info.remaining_vehicle_journey_segments` (gRPC) or\n`Task.journeySharingInfo.remainingVehicleJourneySegments` (REST) are\npopulated by Fleet Engine. They provide route information between the\nremaining `VehicleStops`.\n\n### setRemainingVehicleJourneySegments\n\nTracking information for the stops that the assigned vehicle will make\nbefore it completes this Task. Note that this list can contain stops\nfrom other tasks.\n\nThe first segment,\n`Task.journey_sharing_info.remaining_vehicle_journey_segments[0]` (gRPC)\nor `Task.journeySharingInfo.remainingVehicleJourneySegments[0]` (REST),\ncontains route information from the driver's last known location to the\nupcoming `VehicleStop`. Current route information usually comes from the\ndriver app, except for some cases noted in the documentation for\n[DeliveryVehicle.current_route_segment](/php/docs/reference/maps-fleetengine-delivery/latest/V1.DeliveryVehicle#_Google_Maps_FleetEngine_Delivery_V1_DeliveryVehicle__getCurrentRouteSegment__).\nThe other segments in\n`Task.journey_sharing_info.remaining_vehicle_journey_segments` (gRPC) or\n`Task.journeySharingInfo.remainingVehicleJourneySegments` (REST) are\npopulated by Fleet Engine. They provide route information between the\nremaining `VehicleStops`.\n\n### getLastLocation\n\nIndicates the vehicle's last reported location of the assigned vehicle.\n\n### hasLastLocation\n\n### clearLastLocation\n\n### setLastLocation\n\nIndicates the vehicle's last reported location of the assigned vehicle.\n\n### getLastLocationSnappable\n\nIndicates whether the vehicle's lastLocation can be snapped to\nthe `current_route_segment`. This value is False if either\n`last_location` or `current_route_segment` don't exist. This value is\ncomputed by Fleet Engine. Updates from clients are ignored.\n\n### setLastLocationSnappable\n\nIndicates whether the vehicle's lastLocation can be snapped to\nthe `current_route_segment`. This value is False if either\n`last_location` or `current_route_segment` don't exist. This value is\ncomputed by Fleet Engine. Updates from clients are ignored."]]