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?
optionallabel?:string
Defined in: packages/core/src/hooks/usePopularTimes.ts:25
Optional human-readable label, e.g. "9 AM"
ts?
optionalts?: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.)
