Return the first or last H3 cell identifier of a temporal value
startValue(th3index) → h3index
endValue(th3index) → h3index
SELECT startValue(th3index '831c02fffffffff@2001-01-01');
-- 831c02fffffffff
SELECT endValue(th3index '{831c02fffffffff@2001-01-01, 831c00fffffffff@2001-01-02}');
-- 831c00fffffffff
Return the nth distinct H3 cell identifier (1-indexed). Returns NULL if out of range.
valueN(th3index,integer) → h3index
SELECT valueN(th3index '{831c02fffffffff@2001-01-01, 831c00fffffffff@2001-01-02}', 1);
-- 831c02fffffffff
SELECT valueN(th3index '{831c02fffffffff@2001-01-01, 831c00fffffffff@2001-01-02}', 2);
-- 831c00fffffffff
SELECT valueN(th3index '831c02fffffffff@2001-01-01', 99);
-- NULL
Return the set of distinct H3 cell identifiers the trajectory takes
getValues(th3index) → h3indexset
SELECT getValues(th3index '831c02fffffffff@2001-01-01');
-- {831c02fffffffff}
SELECT getValues(th3index
'[831c02fffffffff@2001-01-01, 831c00fffffffff@2001-01-02,
880326b885fffff@2001-01-03]');
-- {831c00fffffffff, 831c02fffffffff, 880326b885fffff}
Return the H3 cell identifier at a given timestamp, using step interpolation
valueAtTimestamp(th3index,timestamptz) → h3index
SELECT valueAtTimestamp(th3index '[831c02fffffffff@2001-01-01, 831c00fffffffff@2001-01-05]', '2001-01-03'); -- 831c02fffffffff