Get an API key
Workflows

Estimate a labor shed by drive time

Compare the civilian labor force and resident population around candidate sites using road travel time and dated Census tract data.

How many people in the civilian labor force live within driving reach of a candidate warehouse or plant? Send the site’s entrance coordinate and a drive-time limit to POST /v1/proximity. Earth estimates which U.S. Census tracts are reachable and sums their civilian labor force and resident population. Compare sites using the same drive time and verify borderline results before committing to a location.

Request a 30-minute labor shed

Start from the entrance that employees would use. For an address input, check the echoed origin before using the result. At a large site, geocode the street address and use a verified entrance coordinate when the returned point falls on the wrong road or the other side of a restricted crossing.

Set INVARIANT_API_KEY to your API key. This example uses the published address-match point for Micah’s Market in Detroit so you can compare it with the reference study below. Replace it with your site entrance for a decision.

curl --fail-with-body --max-time 75 -sS 'https://api.invariant-ai.com/v1/proximity' \
  -H "X-API-Key: $INVARIANT_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
    "op": "labor_shed",
    "origin": "42.401459727936,-83.20326189987",
    "minutes": 30,
    "include": ["demographics"]
  }'

Send one request per site and time limit. Use minutes from 5 to 90. For a shortlist, start with one common threshold, then repeat at 15 and 45 minutes to see whether the ordering changes. In a dense market, check the number of tracts that require routing before sending a long-duration request.

curl --fail-with-body --max-time 75 -sS 'https://api.invariant-ai.com/v1/proximity' \
  -H "X-API-Key: $INVARIANT_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
    "op": "labor_shed",
    "origin": "42.401459727936,-83.20326189987",
    "minutes": 45,
    "estimate": true
  }'

estimate: true returns annulus_tracts, the number of tracts that would be routed. It stops before calculating the labor force or population. A full run above 3,000 routing candidates returns 422 shed_too_large. Use a shorter common threshold across the sites you’re comparing.

Read the totals and coverage together

Response How to use it
civilian_labor_force Sum of the 2020–2024 ACS five-year civilian labor force estimates for included tracts. Table B23025 includes employed and unemployed civilians age 16 and older. A tract with a missing labor estimate contributes no labor-force count.
population Sum of 2020 Census resident counts for the included tracts. The population and labor estimates use different vintages. Report each vintage alongside its total.
tracts_counted, tracts_matrix_queried, tracts_unreachable The included tracts, routing candidates, and candidates with no usable route. Review the unreachable count around rivers, bridges and restricted crossings.
demographics Optional ACS household, age, tenure and selected income counts and shares. Save tract_geoids, missing_tract_geoids and the vintage. A tract with a missing required cell is omitted from these demographic totals. sums.pop_total and the median estimates are currently unavailable.

Earth uses the Census population center of each tract as a representative point. It includes nearby tracts using a straight-line threshold corresponding to 20 mph, excludes tracts beyond the distance possible at 75 mph, and routes the intervening tracts from the site. Each included tract contributes its whole count. Use this approximation for screening. For a decision that turns on a boundary tract, test trips toward the entrance at the intended shift time. Travel times can differ by direction, and the endpoint does not use live traffic.

See how the boundary changes a site comparison

In the Detroit grocery catchment study, the modeled road boundary changed which site had more employed residents nearby. The study apportioned ACS block groups to a travel-time polygon and a radius. The figures below are published research estimates of employed residents from that calculation.

Site Within a three-mile radius Within a modeled 10-minute drive to the store
Micah’s Market, 15924 Fenkell Avenue 54,500 82,600
Whittier Bodega, 11009 Whittier Avenue 59,600 56,100

Use 42.418102488283,-82.956037584998 in the API request to test the second location. Compare API results with each other using the same time limit. The Detroit table uses a 10-minute boundary, block-group weights and employed residents. Download the Detroit reference data for its address points, boundaries, vintage and weighting method.

Choose the measure for your decision

  • Warehouse or plant staffing. Use the labor shed to compare residential labor pools. For existing work locations, commuting patterns and employer industries, check the geography and reporting year in Census OnTheMap. Validate access for the actual shift separately.
  • Retail trade areas. Start with reachable residents and households. Use a travel-time polygon and finer Census geography when an exact boundary matters. Add observed visits or customer data to estimate demand. A household within reach is a potential customer, and the counts alone give no evidence of a visit or purchase.
  • Freight and service access. For a rule such as “within 30 minutes of either distribution hub,” pass the candidate sites and hubs to screen. It tests the best drive to an anchor and returns screened-out sites with their travel times where a route exists.

For each candidate, retain the input coordinate, drive-time limit, source vintages, tract coverage and retrieval time. Use the same method for the whole shortlist, then review parcel, hazard and infrastructure evidence before choosing a site.