Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 5.75 KB

readme.md

File metadata and controls

74 lines (59 loc) · 5.75 KB

HokkaidoRailGTFS

Description

Creates GTFS file with JR Hokkaido and South Hokkaido Railway data. Hokkaido Shinkansen schedules are omitted.

Requirements

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.

Running

python3 hokkaidorail.py. After a while the GTFS file, hokkaidorail.zip, will be ready.

GTFS Compliance

In general, the produced feed follows the GTFS-JP standard, with 2 exceptions:

  1. Routes aren't splitted by direction,
  2. Fare information is omitted.

IDs & Colors

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 royalblue
Muroran Main Line (Oshamambe~H-Muroran) H 101 #4169E1 royalblue
Muroran Main Line (H-Muroran~Tomakomai) H 102 #4169E1 royalblue
Chitose Line H 103 #4169E1 royalblue
Hakodate Main Line (Otaru~Sapporo) S 104 #FF0000 red
Hakodate Main Line (Sapporo~Asahikawa) A 105 #FFA500 orange
Hakodate Main Line (Oshamambe~Otaru) S 106 #FF0000 red
Sekihoku Main Line A 107 #FFA500 orange
Sekishō Line K 108 #9ACD32 yellowgreen
Nemuro Main Line (Shintoku~Kushiro) K 109 #9ACD32 yellowgreen
Nemuro Main Line (Takikawa~Shintoku) T 110 #FFB6C1 lightpink
Senmō Main Line B 111 #FF69B4 hotpink
Sōya Main Line W 112 #A52A2A brown
Gakuentoshi Line G 113 #2E8B57 seagreen
Furano Line F 114 #9370DB mediumpurple
Nemuro Main Line (Kushiro~Nemuro) 115 #808080 grey
Muroran Main Line (Tomakomai~Iwamizawa) 116 #808080 grey
Hidaka Main Line 117 #808080 grey
Rumoi Main Line 118 #808080 grey
South Hokkaido Railway sh 119 #000000 black
2×× reserved for bus replacement service
Lilac A 301 #FFA500 orange
Kamui A 302 #FFA500 orange
Okhotsk A 303 #FFA500 orange
Taisetsu A 304 #FFA500 orange
Sōya W 305 #A52A2A brown
Sarobetsu W 306 #A52A2A brown
Ōzora K 307 #9ACD32 yellowgreen
Tokachi K 308 #9ACD32 yellowgreen
Hokuto H 309 #4169E1 royalblue
Suzuran H 310 #4169E1 royalblue
Furano Lavender Express T 311 #FFB6C1 lightpink
Niseko H 312 #4169E1 royalblue

License

HokkaidoRailGTFS is reeleeased under the MIT License. For full text see the license.md file.