nz-traffic-counts
Query NZ traffic, cycle and pedestrian count sites and time series, from Auckland Transport, NZTA TMS, Heart of the City, Hamilton, Christchurch, Wellington…
от thecolab-ai★ 41 звезда на GitHub
Установить nz-traffic-counts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
NZ traffic counts
Use the stdlib Python CLI in scripts/cli.py for public traffic surveys, cycle
counts and pedestrian camera observations. Start with sources, choose a source,
then obtain the exact site identifier with sites before querying counts.
python3 scripts/cli.py sources --json
python3 scripts/cli.py sources --source wellington-sensors --json
python3 scripts/cli.py sites --source hamilton-traffic --limit 2 --json
python3 scripts/cli.py counts --source hamilton-traffic --site 2893 --from 2023-01-01 --to 2023-12-31 --json
python3 scripts/cli.py counts --source christchurch-cycle --site 100045582 --format geojson
python3 scripts/cli.py nearest --source wellington-sensors --near 174.7754,-41.3199 --limit 2 --format geojson
python3 scripts/cli.py counts --source wellington-sensors --site 48346 --from 2026-09-01 --to 2026-09-01 --json
python3 scripts/cli.py sites --source at-adt --bbox 174.74,-36.87,174.79,-36.83 --format geojson --json
python3 scripts/cli.py counts --source at-adt --site 23788:522 --json
python3 scripts/cli.py sites --source at-traffic --limit 5 --json
python3 scripts/cli.py counts --source at-traffic --site 6f28d534b38283b7 --from 2012-01-01 --to 2026-06-30 --json
python3 scripts/cli.py counts --source at-cycle-daily --site "Albany Highway Cyclist" --from 2026-07-01 --to 2026-07-31 --json
python3 scripts/cli.py counts --source at-cycle-monthly --site "Albany Highway Cyclist" --json
python3 scripts/cli.py sites --source nzta-tms --bbox 174.5,-37.2,175,-36.6 --json
python3 scripts/cli.py counts --source nzta-tms --site 00200444 --from 2018-01-01 --to 2018-01-01 --json
python3 scripts/cli.py counts --source hotcity --site "107 Quay Street" --from 2026-09-01 --to 2026-09-01 --json
python3 scripts/cli.py nearest --near 174.76,-36.85 --source at-adt --radius-km 1 --limit 3 --json
at-traffic: the entire-network workbook's July 2012–June 2026 worksheet, including any earlier survey dates carried in that worksheet. Site IDs hash the exact area, road, carriageway endpoints, location and direction labels.at-adt: AT ArcGIS historic surveys. Site IDs arecarriageway:location. Site listing useslatest=Yes; inspect each survey date because this flag can refer to a very old count. The current layer holds one survey per site.at-cycle-daily: published daily counter observations. Discovers the latest monthly file; date filters select matching monthly XLSX files on AT's download page.at-cycle-monthly: sums those daily observations by site and calendar month, retaining observed, published and missing-day counts. Date filters select overlapping months; totals include the whole published month, even when--from/--tofalls within it. Missing values remain missing.nzta-tms: spatial site inventory joined operationally to the daily-count table through the site reference, preserving leading zeros. Inventory also contains virtual and inactive sites that may have no daily observations. Counts default to the last 30 days; explicit dates are preferable. Returns lane, direction and vehicle-class rows separately, preserving duplicates.hotcity: yearly hourly XLSX files; discovers the latest yearly download. Date filters discover the relevant yearly downloads. Site IDs are exact column labels, including spelling and line breaks. The 2026 workbook has 24 camera series after three additions to the earlier network.
The four city sources also support --bbox, nearest and GeoJSON, including
spatial counts output. Filtering is upstream ArcGIS envelope intersection
(esriSpatialRelIntersects), except Christchurch point containment applied locally.
Wellington GeoJSON preserves countlines; nearest measures their vertex-mean centres.
Nearest searches within --radius-km (default 10 km), using straight-line
WGS84 distance; an empty result means no site in that radius. A supplied bbox
further defines the search area. Workbook sites --format geojson emits null
geometries, since those downloads do not supply coordinates.
hamilton-traffic: annualYear2000–Year2023fields, preserving nulls. Site IDs use ArcGIS OBJECTID;site_numberpreserves the council label. Leading zeros are the same numeric id.Direction=Bothand compass-direction rows are separate series; do not add them. Date filters use overlap with the whole year;dateretains year precision.latest_datais the newestYearYYYYfield on the returned records, not a survey day and not--limit.tauranga-traffic: latest survey ADT per UUID site, with heavy-vehicle percentage. Survey dates can be decades old even though the layer is refreshed. The published direction label is kept; do not add site rows together.christchurch-cycle: counter snapshot keyed byoid. The network total feature is omitted.direction=oneanddirection=bothare separate non-additive series (12 one and 29 both on 2026-10-11). No observation date or period is
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .gitignore
- references/source-notes.md
- scripts/city_tests.py
- scripts/cli.py
- scripts/parser_tests.py
- scripts/provenance.py
- scripts/smoke_test.py
- scripts/test_contract.py
FAQ
Что делает скилл nz-traffic-counts?
Query NZ traffic, cycle and pedestrian count sites and time series, from Auckland Transport, NZTA TMS, Heart of the City, Hamilton, Christchurch, Wellington and Tauranga. Use for historical volumes, active-mode monitoring and nearby count sites.
Как установить скилл nz-traffic-counts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nz-traffic-counts запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…