HyperTrackDocs

Pre-shift tracking for no-shows and delays

Start tracking before the worker leaves for the site to get delay warnings and the arrival time for each shift. Use pre-shift mode to track the commute, or full-shift mode to also get verified time on site.

Introduction

HyperTrack knows where a worker is only while the worker's phone sends locations. It records the arrival at the first location that the phone sends from inside the geofence, which is the area of the work site. If tracking starts after the worker is at the site, that first location comes later than the worker did.

For example, a worker comes at 08:50 for a 09:00 shift. Tracking starts after that, and the phone sends its first location at 09:20. HyperTrack records the arrival at 09:20. With the default 15-minute grace, the shift counts as late.

To prevent this, start tracking before the worker leaves for the site. You then get two things:

  • A delay warning during the commute, when the worker will probably arrive after the shift start, or moves away from the site. HyperTrack calls this warning a risk.
  • A shift result after you complete or cancel the order, such as on_time, late, or no_show. HyperTrack calls this result the arrival outcome.

Set up the worker app first

HyperTrack starts tracking on the worker's phone with a silent push notification. Before you make the first API call, set up silent push notifications in the worker app for iOS and Android.

The phone must also be on, and the app must have location permission. Without them, the phone sends no locations, and HyperTrack has no arrival to record.

Start tracking before the worker leaves

Call POST /orders/track for each shift. Make the call early enough that the phone sends locations before the worker leaves for the site. Allow time before the shift start to contact the worker or find a replacement after a warning.

Set track_mode to one of these values:

  • pre_shift tracks the commute. You get risks during the commute, and the arrival time.
  • full_shift tracks the commute and the shift. You also get verified time on site. Set expected_service_time to the shift duration in seconds.

Then set these fields on the order:

  • scheduled_at: the shift start time. HyperTrack compares the arrival time with it. Without it, the outcome is unscheduled.
  • order_handle: your shift ID, so that you can find the shift in HyperTrack.
  • destination: the work site. The examples below send an address and a point, and HyperTrack creates the geofence around the point. If you have a place in HyperTrack or a polygon for the site, send the place_handle or the polygon.
POST /orders/track
{
  "ops_group_handle": "default",
  "track_mode": "pre_shift",
  "worker_handle": "david@ht.com",
  "orders": [
    {
      "order_handle": "shift-3",
      "destination": {
        "address": "4501 Rosewood Dr, Pleasanton, CA 94588",
        "geometry": {
          "type": "Point",
          "coordinates": [-121.889965, 37.6982982]
        }
      },
      "scheduled_at": "2026-10-14T15:00:00Z"
    }
  ]
}

Use on_shift when you only need verified time on site. For the three modes, see Pre-shift and On-shift tracking.

When the shift ends or changes, complete or cancel the order (see Report the shift result). HyperTrack sets the arrival outcome only then.

Get delay warnings before the shift

While the order is open, HyperTrack estimates from the live location when the worker will reach the site, and compares this ETA with scheduled_at. It sends risks in the Orders At Risk webhook. Two of them tell you about the arrival:

  • delayed_from_scheduled_at: the ETA is after scheduled_at. HyperTrack also sends the Order Delayed webhook.
  • moving_away_from_destination: the worker moves away from the site.

The webhook also has other risks, for example for a phone that is offline. For all of them, see the webhook payload.

Each risk has a level. At yellow, check the status of the worker. At red, you may need to act, for example with a call to the worker. For how HyperTrack sets the levels, see How to read intensity.

A risk is a prediction. It does not change the arrival outcome. A worker with a red delayed_from_scheduled_at risk can still arrive on time, and the outcome is then on_time.

To list the open orders with a risk at yellow or red, use the risk_status filter on GET /orders.

Check arrivals and no-shows after the shift

HyperTrack sets the arrival outcome when you complete or cancel the order. Until then, the outcome is pending. To set it, HyperTrack compares the recorded arrival time with scheduled_at plus the grace.

The grace is the number of minutes after scheduled_at in which an arrival still counts as on time. The default is 15 minutes. For a 09:00 shift with a 15-minute grace, an arrival at 09:15 is on_time, and an arrival at 09:16 is late.

OutcomeWhen
on_timeThe recorded arrival time is at or before scheduled_at plus the grace. An early arrival is on time.
lateThe recorded arrival time is after scheduled_at plus the grace.
no_showYou completed the order, and the phone sent no location inside the geofence. For a cancelled order, see Cancelled orders.
cancelled_earlyYou cancelled the order before the cancellation cutoff, and the worker had not arrived. See Cancelled orders.
unscheduledTracking started for the order, but the order has no scheduled_at.
excludedTracking never started for the order, the order was rescheduled, or you cancelled it with the reason client_cancelled.

on_time, late, no_show, and cancelled_early are possible only when tracking started for the order and the order has a scheduled_at. The one exception is a cancellation with the reason no_show (see Cancelled orders).

Only on_time, late, and no_show count in the show rate and the on-time rate.

Get arrival results with the API

Call GET /orders with include=reliability. Each order then has a reliability object:

reliability of a late shift
{
  "arrival_outcome": "late",
  "lateness_s": 1260,
  "start_at": "2026-10-14T15:00:00Z",
  "grace_min": 15,
  "start_by": "2026-10-14T14:35:00Z",
  "departed_at": "2026-10-14T14:52:00Z",
  "cause": "late_departure"
}
  • start_at: the shift start, from scheduled_at
  • lateness_s: the seconds from start_at to the arrival
  • grace_min: the grace for your account
  • start_by: the time that the worker had to leave to arrive on time
  • departed_at: the time that the worker left for the site
  • cause: the primary cause of a late shift or a no-show, for example late_departure, stop_on_the_way, or dc_traffic

In this example, the worker had to leave by 14:35 and left at 14:52. The worker arrived at 15:21, 21 minutes after the 15:00 start. This exceeds the 15-minute grace, so the outcome is late. The cause is late_departure.

HyperTrack finds the cause from the locations that the phone sent during the commute. Missing locations can prevent HyperTrack from identifying why the worker was late. A late shift can then get the cause dc_unmeas, which means that HyperTrack could not measure the commute. A no-show can get the cause invisible, which means that the phone sent no data after tracking started.

Cancelled orders

For a cancelled order, the outcome depends on the cancellation reason, on the arrival, and on the cancellation time.

By default, HyperTrack uses the time of your cancel call as the cancellation time. Cancel the order as soon as you know about the cancellation. If you make the call late, an early cancellation can count as a no-show.

HyperTrack compares the cancellation time with the cancellation cutoff. By default, the cutoff is the shift start. Your account can move it to a number of minutes before the start. For example, a 09:00 shift with a 120-minute cutoff has its cutoff at 07:00. A cancellation at 06:59 is before the cutoff. A cancellation at 07:00 or later is at or after the cutoff.

The outcomes below are for an order with a scheduled_at. Without one, the outcome is unscheduled if tracking started for the order, and excluded if not.

  • no_show: the outcome is no_show, also when tracking never started for the order.
  • client_cancelled: the outcome is excluded. The worker does not get a no-show.
  • worker_cancelled, other, or no reason: if tracking never started for the order, the outcome is excluded. If it started, HyperTrack looks at the arrival and at the cancellation time.
    • The worker arrived at or before the cancellation time: on_time or late, from the arrival time.
    • The worker had not arrived, and you cancelled before the cutoff: cancelled_early.
    • The worker had not arrived, and you cancelled at or after the cutoff: no_show.

An arrival after the cancellation time does not count as an arrival.

What happens if tracking starts after the worker leaves

If the first location arrives during the commute, HyperTrack misses the worker's departure. If it arrives after the worker reaches the site, HyperTrack cannot determine the actual arrival time. The table assumes tracking started for the order and the order has a shift start time.

The phone sends its first locationWhat you get
Before the worker leavesRisks during the commute, the departure time, and the arrival time.
During the commuteRisks for the rest of the commute, and the arrival time. The departure time is unknown.
After the worker is at the siteThe recorded arrival time is the time of that first location, so a worker who came on time can get late.
NeverNo arrival. A completed order gets no_show, even if the worker attended.

Tracking can start for an order while the phone is off or has no location permission. HyperTrack then gets no location inside the geofence and records no arrival. It cannot tell this worker from one who stayed away.

If tracking never starts for the order at all, the outcome is excluded, with the exception for no-show cancellations.

Early tracking does not guarantee complete data. If the phone stops sending locations during the commute, HyperTrack misses that part too.

On this page