• Home
  • Guides
  • Reference
  • Support
Search Results for

    Show / Hide Table of Contents
    • API Overview
      • Overview
      • Authentication
      • Retrieving API Results
      • Referenced vs Inline Entities
      • Choosing API Response Data
      • Handling API Errors
    • separator
    • Vehicle Routing Endpoints
      • Path
    • Optimization Endpoints
      • Instantiate
      • Build
      • Assignment Restrictions
      • Optimize
      • Sequence
      • Evaluate
      • Recommend
      • Insert
      • Centroids
      • Zones
      • Consolidate By Job Restrictions
      • Consolidate By Route Assignments
    • Geocoding Endpoints
      • Geocode
      • Reverse Geocode
    • Task Endpoints
      • List
      • Status
      • Result
      • Cancel
    • Sandbox Endpoints
      • List
      • Create
      • Rename
      • Retrieve
      • Update
      • Delete
      • Revisions
      • Add Revision
      • Expiry
      • Permissions
    • Verizon Connect Fleet Integration Endpoints
      • Pull Platform Data
      • Sync Platform Data
      • List Platform Territories
    • Other Endpoints
      • Canonicalize
      • Route Cards
      • Validate
      • Version
    • separator
    • Request Types
      • problem
      • capacity_metric
      • depot
      • driver
      • driver_break
      • job
      • job_template
      • job_type
      • load_amount
      • marker
      • problem_defaults
      • route
      • schedule
      • settings
      • shift
      • shift_override
      • shift_pattern
      • shift_pattern_assignment
      • stop
      • vehicle
      • zone
      • variance
    • Response Types
      • instantiate_response
      • problem_response
      • problem_aggregates
      • driver_response
      • geocoded_location
      • recommend_option
      • route_response
      • schedule_response
      • schedule_instantiate_response
      • stop_response
      • violation
    • Meta Types
      • task_redirect_response
      • task_status_response
      • validate_response
    • Sandbox Types
      • delta
      • array_delta
      • dict_delta
      • keyed_array_delta
      • object_delta
      • set_delta
      • revision
      • revision_created_response
      • revision_response
      • sandbox_response
    • Common Types
      • date_range
      • day_of_week
      • hazmat_load_type
      • id
      • latlon
      • stop_type
      • time_window
      • custom
      • polygon
    • Primitive Types
      • boolean
      • date
      • datetime
      • float
      • integer
      • string
      • timespan

    shift

    A shift contains all of the time-based details included in a route. Shifts are used with shift_patterns to instantiate routes.

    Name Type Description
    breaks driver_break[] The driver breaks that should be inserted onto the shift. See Routing with Driver Breaks.
    breaks_relative_to_start boolean Defines if the break start time is relative to the shift start. Defaults to false. See Routing with Driver Breaks.
    custom custom User-supplied custom fields that are returned unmodified in the response. These have no effect on optimization.
    enable_end_stem_time boolean Defines if the optimization includes the effect of the time it takes to drive from the last job to the depot. Defaults to the value of settings.defaults.enable_end_stem_time.
    enable_start_stem_time boolean Defines if the optimization includes the effect of the time it takes to drive to the first job. Defaults to the value of settings.defaults.enable_start_stem_time.
    end_time timespan If using optimize_start_time, set this field to determine the latest time that the shift can end. Defaults to the value of settings.defaults.end_time, if provided.
    id id Unique ID of the shift.
    max_driving_time timespan The maximum time the driver can spend driving during a shift. This is useful for meeting Hours of Service regulations.
    max_working_time timespan The maximum total time of the route. Defaults to the value of settings.defaults.max_working_time, if provided.
    name string The name of the shift.
    normal_working_time timespan The total working time before overtime rates must be paid. Defaults to the value of settings.defaults.normal_working_time, if provided.
    optimize_start_time boolean Allows the shift to start after its start_time if it is efficient to do so. Defaults to the value of settings.defaults.optimize_start_time.
    start_time timespan The time of day that the driver starts the shift at the start location. Defaults to the value of settings.defaults.start_time, if provided.

    Example

    {
      "id": "shift0",
      "start_time": "09:00",
      "end_time": "17:00",
      "max_driving_time": "08:00",
      "enable_start_stem_time": true
    }
    

    See Also

    • The shift_pattern type.
    • The instantiate endpoint.
    • Routing with Shifts.
    In this article
    Back to top
    © 2023 Verizon. All rights reserved. Verizon Privacy policy California Privacy Notice Your Privacy Choices Privacy request