Query real-time NZ state highway traffic conditions from the Waka Kotahi NZTA Traffic and Travel API. Use when checking road events, incidents, closures, roadworks, traffic cameras, or travel conditions on New Zealand highways. Covers all 14 NZ regions (Northland to Southland). No API key required. Use for queries like "how's the traffic", "any road closures", "check SH1 conditions", or "traffic cameras near Wellington".
技能名称: nzta-traffic
查询 Waka Kotahi 交通与出行 REST API,获取新西兰全国实时高速公路状况。
查询某个区域的交通事件:
bash
scripts/nzta-traffic.sh --region Wellington
查询特定高速公路:
bash
scripts/nzta-traffic.sh --journey 10
查询某个区域的交通摄像头:
bash
scripts/nzta-traffic.sh --cameras --region Wellington
scripts/nzta-traffic.sh [选项]
选项:
--region <名称|ID> 区域名称或ID(例如 Wellington 或 9)
--journey
--bbox <最小经度,最小纬度,最大经度,最大纬度> 边界框查询
--cameras 列出交通摄像头而非事件
--list-regions 列出所有区域名称和ID
--list-journeys 列出某个区域的行程(需配合 --region)
--json 输出原始JSON而非格式化摘要
--zoom <级别> 几何缩放级别,-1表示无几何(默认:-1)
运行 --list-regions 获取区域ID,然后运行 --list-journeys --region <名称> 查找该区域的高速公路行程ID。
惠灵顿区域常见行程:SH1(ID 10)、SH2(ID 9)、SH58(ID 12)、SH59(ID 341)。
完整端点参考及响应字段说明,请参见 references/api-endpoints.md。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 nzta-traffic-1776201369 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 nzta-traffic-1776201369 技能
skillhub install nzta-traffic-1776201369
文件大小: 5.26 KB | 发布时间: 2026-4-15 13:31