Geographical data of trains in Japan.
This is a web based tool to inspect the train line data from 国土数値情報 (Japan's National Land Information). It is packaged as a Svelte component so it can be also embedded in other Svelte projects.
The Yamanote Line Displayed in-app
Before building and running this, you must download the data from the Japanese Government GIS website.
The data is not included, so follow the instructions above to download and extract to the static/
folder.
The app expects the folders and files in the following structure:
projectRoot
└───static
│ │ N02-18_RailroadSection.geojson
│ │ N02-18_Station.geojson
After extracting the data, build and run.
pnpm install
pnpm run dev
# open up http://localhost:5173/
The inspect simply displays the train line that was selected in SVG, scaled to a fixed width.
The shp file can be opened in QGIS and explored using that app. However, you need to modify the import settings to understand JIS encoding.
Open in QGIS by installing it and then double clicking on the file. For some reason you can't open it up using File > Open in QGIS.
To set the correct encoding, go to Layer > Layer Properties > Source and choose "Shift_JIS".