Nzta highway info

From thecolab-ai/.skills · View interactive version

Nzta highway info is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query current official NZTA state-highway events, travel-time signs, traffic cameras, and variable-message signs. Use for bounded live highway-condition lookups; read-only and not a complete safety source.

How to use this skill

Skill file

NZTA Highway Info

Goal

Run bounded, read-only lookups against NZ Transport Agency Waka Kotahi's public

Traffic and Travel API v4 for current state-highway events, traffic-camera

metadata and image URLs, displayed travel times, and variable-message signs.

This is a situational-information aid, not a complete or safety-critical source.

Conditions can change after retrieval. For a critical journey, confirm against

the official NZTA Journey Planner, roadside signs, closures, emergency services,

and relevant local council sources.

The frontmatter's MIT licence covers this skill's code and documentation only.

The source catalogue currently marks the NZTA dataset non-open and supplies no

licence id, title, or URL. Read-only current queries remain bounded here, but

reuse or republication of source data requires separate due diligence and, where

needed, permission from NZTA.

Use this when

Management (TIM) signs

Do not use this for

minutes but no free-flow baseline, so this skill deliberately does not infer it

Use nz-road-closures when its Journey Planner-oriented event and route workflow

is the better fit. Use this skill for the direct Traffic and Travel v4 feeds,

including VMS and TIM data.

Workflow

  1. Start with the narrowest command and a small --limit.
  2. Add --region and --query to filter locally, case-insensitively.
  3. Treat source.retrieved_at as fetch time, not proof that every item was updated

then. Prefer item update fields where present.

  1. Repeat the safety/completeness warning for travel decisions.
  2. Use --json for agent chaining; inspect complete, truncated, source_count,

and warnings rather than reporting only the returned list.

  1. If the source times out, is blocked, or changes schema, report that state; do

not convert it into an empty successful result.

Commands

Run from the repository root.

python3 skills/nzta-highway-info/scripts/cli.py events --region Wellington --event-type incident --limit 10 --json

events returns current road-event metadata, including event timestamps when the

source supplies them. --event-type is a case-insensitive substring because the

official vocabulary can change.

python3 skills/nzta-highway-info/scripts/cli.py travel-times --region Auckland --limit 10 --json

travel-times returns enabled and disabled TIM sign records plus displayed

numeric destination minutes. congestion_status remains null; do not turn

these values into congestion claims without a defensible baseline.

python3 skills/nzta-highway-info/scripts/cli.py cameras --region Canterbury --query SH1 --limit 10 --json

cameras returns metadata, operational flags, and official image_url,

thumbnail_url, and view_url values when supplied. The API provides no reliable

per-camera image timestamp.

python3 skills/nzta-highway-info/scripts/cli.py vms --region Wellington --active-only --limit 10 --json

vms decodes [nl] and [np] markers into message_lines and exposes message

update times where present. A displayed message is advisory information, not a

substitute for signs and directions encountered on the road.

python3 skills/nzta-highway-info/scripts/cli.py regions --limit 20 --json

regions lists official API region ids and names for discovery. All commands

also support human-readable output when --json is omitted.

Bounds and failures

6: schema/parser failure.

values at any depth; JSON output is standards-compliant and uses allow_nan=false.

Camera operational flags and TIM enabled state are required booleans; malformed

or absent state fails closed instead of being labelled online or disabled.

retrieval time, counts, truncation state, completeness disclaimer, and warnings.

Freshness and completeness

timestamp; it can be null.

timestamp.

safety coverage, and local roads require other authorities.

Resources

references/source-notes.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.