Creates GTFS file with JR Hokkaido and South Hokkaido Railway data.
Hokkaido Shinkansen schedules are omitted.
Python3 (version 3.6 or later) is required with 5 additional libraries:
All python requirements can be installed with pip3 install -U -r requirements.txt
.
python3 hokkaidorail.py
. After a while the GTFS file, hokkaidorail.zip, will be ready.
In general, the produced feed follows the GTFS-JP standard, with 2 exceptions:
- Routes aren't splitted by direction,
- Fare information is omitted.
Direction ID: 0 means "down" (下り), 1 means "up" (上り).
Route colors are based on https://www.jrhokkaido.co.jp/global/pdf/e-route_map.pdf.
Line Name |
JR Code |
GTFS ID |
Color |
Color Example |
Hakodate Main Line (Hakodate~Oshamambe) |
H |
100 |
#4169E1 |
|
Muroran Main Line (Oshamambe~H-Muroran) |
H |
101 |
#4169E1 |
|
Muroran Main Line (H-Muroran~Tomakomai) |
H |
102 |
#4169E1 |
|
Chitose Line |
H |
103 |
#4169E1 |
|
Hakodate Main Line (Otaru~Sapporo) |
S |
104 |
#FF0000 |
|
Hakodate Main Line (Sapporo~Asahikawa) |
A |
105 |
#FFA500 |
|
Hakodate Main Line (Oshamambe~Otaru) |
S |
106 |
#FF0000 |
|
Sekihoku Main Line |
A |
107 |
#FFA500 |
|
Sekishō Line |
K |
108 |
#9ACD32 |
|
Nemuro Main Line (Shintoku~Kushiro) |
K |
109 |
#9ACD32 |
|
Nemuro Main Line (Takikawa~Shintoku) |
T |
110 |
#FFB6C1 |
|
Senmō Main Line |
B |
111 |
#FF69B4 |
|
Sōya Main Line |
W |
112 |
#A52A2A |
|
Gakuentoshi Line |
G |
113 |
#2E8B57 |
|
Furano Line |
F |
114 |
#9370DB |
|
Nemuro Main Line (Kushiro~Nemuro) |
|
115 |
#808080 |
|
Muroran Main Line (Tomakomai~Iwamizawa) |
|
116 |
#808080 |
|
Hidaka Main Line |
|
117 |
#808080 |
|
Rumoi Main Line |
|
118 |
#808080 |
|
South Hokkaido Railway |
sh |
119 |
#000000 |
|
2×× reserved for bus replacement service |
|
|
|
|
Lilac |
A |
301 |
#FFA500 |
|
Kamui |
A |
302 |
#FFA500 |
|
Okhotsk |
A |
303 |
#FFA500 |
|
Taisetsu |
A |
304 |
#FFA500 |
|
Sōya |
W |
305 |
#A52A2A |
|
Sarobetsu |
W |
306 |
#A52A2A |
|
Ōzora |
K |
307 |
#9ACD32 |
|
Tokachi |
K |
308 |
#9ACD32 |
|
Hokuto |
H |
309 |
#4169E1 |
|
Suzuran |
H |
310 |
#4169E1 |
|
Furano Lavender Express |
T |
311 |
#FFB6C1 |
|
Niseko |
H |
312 |
#4169E1 |
|
HokkaidoRailGTFS is reeleeased under the MIT License.
For full text see the license.md
file.