# `Sidereon.GNSS.Staleness.Policy`
[🔗](https://github.com/neilberkman/sidereon-ex/blob/main/lib/sidereon/gnss/staleness.ex#L45)

Staleness cap for product selection.

A selection that would rely on a product older than `max_staleness_s` fails
with `{:beyond_staleness_cap, info}` rather than returning data past the cap.
The default cap is three days, which spans the typical rapid/predicted
product latency plus a weekend gap.

# `t`

```elixir
@type t() :: %Sidereon.GNSS.Staleness.Policy{max_staleness_s: float()}
```

# `days`

```elixir
@spec days(number()) :: t()
```

A policy with the cap expressed in days.

# `default`

```elixir
@spec default() :: t()
```

The default policy: a three-day staleness cap.

# `seconds`

```elixir
@spec seconds(number()) :: t()
```

A policy with the cap expressed in seconds.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
