# AGENTS.md — 駅別乗降客数データ (S12)
14 files, 44 MB, 2011–2024.

## Before you download
| | |
|---|---|
| Files | 14 |
| Measured total | 44 MB |
| Years present | 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 |
| Newest edition | 2024 |
| Geometry | 線 |
| Formats | GML (13) |

## Licence
Per file, resolved from the file's own year: 再配布できる 14.
The Collection's own `license` is `CC-BY-4.0`; it falls back to `other` whenever any single year in the dataset does. Read the Item's `license` and its `ksj:terms_applied`, the sentence that decided it.

## Columns
- **属性情報** — 63 columns: `S12_001` 駅名, `S12_001c` 駅コード, `S12_001g` グループコード, `S12_002` 運営会社, `S12_003` 路線名, `S12_004` 鉄道区分 …

30 columns are coded, carrying a `ksj:codelist_href` into `../../codelists/`, where every value has a label.

Column names are what a query has to spell; the readable name is beside it. These come from the dataset page, which keeps superseded schemas as HTML comments -- those are stripped, so what is listed here is the current edition's.

## Often used with
- `../N02/collection.json` — 駅の位置に乗降客数を結合する（駅名と事業者で突き合わせ）

These pairs are an editorial judgement, not upstream metadata: they carry `ksj:editorial: true`. The list is not exhaustive, and a combination missing from it is not a combination that was rejected.

## Count it, do not trust this file
Every number above is generated from the catalog, but a fact stated in prose goes stale silently. The Items are the record:

```sql
select year, region, redistribution, file_size
  from 'https://stac.yuiseki.net/mlit-nlftp/items.parquet'
 where collection = 'S12'
 order by year desc;
```

`ksj:is_latest` on an Item is computed per region, so the newest year for the country is not the newest year everywhere.
