# AGENTS.md — 鉄道データ (N02)
19 files, 0.2 GB, 2005–2025.

## Before you download
| | |
|---|---|
| Files | 19 |
| Measured total | 0.2 GB |
| Years present | 2005, 2006, 2007, 2008, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025 |
| Newest edition | 2025 |
| Coordinate system | JGD2011 / （B, L） |
| Geometry | 線 |
| Formats | GML (18) |

## Licence
Per file, resolved from the file's own year: 再配布できる 19.
The Collection's own `license` is `other`; 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
- **RailroadSection.shp** — 4 columns: `N02_001` 鉄道区分, `N02_002` 事業者種別, `N02_003` 路線名, `N02_004` 運営会社
- **Station.shp** — 7 columns: `N02_001` 鉄道区分, `N02_002` 事業者種別, `N02_003` 路線名, `N02_004` 運営会社, `N02_005` 駅名, `N02_005c` 駅コード …

4 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
- `../S12/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 = 'N02'
 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.
