Skip to content

spatial-monorepo


spatial-monorepo / core/src / HourlyBucket

Interface: HourlyBucket

Defined in: packages/core/src/hooks/usePopularTimes.ts:19

A single hourly occupancy measurement.

Properties

hour

hour: number

Defined in: packages/core/src/hooks/usePopularTimes.ts:21

Hour of day: 0–23


label?

optional label?: string

Defined in: packages/core/src/hooks/usePopularTimes.ts:25

Optional human-readable label, e.g. "9 AM"


ts?

optional ts?: number

Defined in: packages/core/src/hooks/usePopularTimes.ts:31

Unix timestamp (ms) for the measurement. Used by the since filter option to discard stale buckets. Buckets without a ts field are always kept (backward compatible).


value

value: number

Defined in: packages/core/src/hooks/usePopularTimes.ts:23

Occupancy value (headcount, percentage, etc.)

Released under commercial licensing.