High Command
LibraryTemplatesGet startedPricing
Get Pro · $79

Guide

Browse everythingGetting startedThemingYour data

Site

HomeTemplatesPricingChangelog

Templates 4

Command centerProFleetProCustomer trackingProField servicePro

Ops and shell 9

App shellProOps modelProAttention queueProMorning briefProShift handoverProLane panelProOwn-fleet partsProAgent action barProCustomizable dashboardPro

Map 17

PMTiles basemapPMTiles routeTrip hologramProBasemap styleMap geometryMapLand texture and dot lensProException heatmap and risk contoursProLane arcsProShipment layerOwn fleet layerProFleet map layersCurated place labels and sitesRoute traceEdge chipsProMap key, filters and paddingMap kitPro

Time and trips 11

Time and trip modelsEvent fieldProIn-transit rowsProImpact lineProActivity barProReplay clockTime controlPlayback overlayProTrip timetableProStage rowWeek cursorPro

Figures, charts and tables 14

Sourced valueKey-figure tileFigure groupPart barBand sparklineKPI stripProChart kitPop barWaterfall cascadeMargin chartsPro13-week cash ladderProWork tableProField railProHorizon gridPro

Zones and dispatch 10

Zones modelDispatch modelProGeofence layerGeofence eventsGeofence drawProService ringsDensity heatmapJob queueProAssign dialogProStop listPro

Design system 3

ThemeShared helpersUI primitives

Routing 3

Offline road routerAustin road graphAustin areas

Libraries 2

Fleet coreRoute core
High Command

Map, fleet and ops-console components for React. Built in-house, copied into your app with the shadcn CLI.

Product

  • Library
  • Templates
  • Pricing
  • Changelog

Build

  • Get started
  • Accessibility
  • Trip hologram

Templates

  • Command center
  • Fleet
  • Field service

New pieces by email. A short note when a release lands.

One email per release. Unsubscribe any time.

© 2026 High Command Pro licenseTermsPrivacyRefundsMap data © OpenStreetMap contributors · OpenFreeMap
Library/Libraries

Route core

Stops, tracks and time windows: interpolation, honest ETA ranges, window status, deviation.

Free · MITLibrary@highcommand/route-core1 file
See it in context
R-07 · Maria Lopez9:10 AM
34% driven · detour up to 1.0 mi off plan
#4UT CampusOn time
ETA 9:15 – 9:30 AM · window 8:30 – 9:30 AM
#5Zilker ParkOn time
ETA 9:40 – 9:55 AM · window 8:30 – 10:30 AM
#6South CongressOn time
ETA 10:05 – 10:20 AM · window 8:30 – 10:30 AM

Installation

$ npx shadcn@latest add @highcommand/route-core

Copies the source into your project and pulls in what it needs (1 other item). First time? Add the registry to components.json.

API

12 functions
  • measure(points: (LngLat | TrackPoint)[]): number[]

    Cumulative meters from the first point to each point.

  • bearing(a: LngLat, b: LngLat): number

    Initial bearing from a to b, degrees clockwise from north in [0, 360).

  • positionAt(track: TrackPoint[], t: number, cumulative?: number[]): TrackPosition | null

    Position, heading and progress at time `t`, linearly interpolated between fixes. Clamps before the first and after the last fix. Pass a memoized `cumulative` (from `measure`) when calling every frame.

  • etaRange(eta: number, now: number, { spread, minSpreadMs, roundMs }?: EtaRangeOptions): TimeRange

    An honest ETA: a range that widens with distance-in-time and skews late (traffic delays more than it speeds up). Never starts before `now`; an overdue ETA is treated as "any minute now".

  • windowStatus(eta: TimeRange, window: TimeRange): WindowStatus

    How an ETA range sits against a promised window. Late only when even the earliest arrival misses; at risk when the range straddles the window end.

  • delayMinutes(eta: number, promised: number): number

    Whole minutes late (negative = early).

  • formatDelay(minutes: number): string

    "+12 min", "−3 min", "+1 h 05 min". Zero is "+0 min".

  • formatTimeRange(start: number, end: number, locale?: string | undefined): string

    "2:10 – 2:25 PM": shared AM/PM is written once (Intl formatRange).

  • formatDistance(meters: number, units?: "imperial" | "metric"): string

    "350 ft" / "1.2 mi" (imperial) or "420 m" / "1.2 km" (metric).

  • distanceToLine(p: LngLat, line: LngLat[]): number

    Shortest distance in meters from a point to a polyline.

  • deviation(planned: LngLat[], actual: LngLat[], thresholdMeters?: number): Deviation

    Compare the driven path with the planned one.

  • routeColor(i: number): string

    Color for the i-th route from ROUTE_COLORS, wrapping around after 12.

Dependencies

npm
None beyond React
Builds on
Fleet core
Pro pieces built on this
Trip hologram Pro

Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.

PreviousFleet core

On this page

PreviewInstallationAPIDependencies