MKuranowski / TokyoGTFS

Create GTFS data for Tokyo public transportation
MIT License
4 stars 1 forks source link

TokyoGTFS

Description

Creates GTFS and feed for Tokyo from various data, mainly the Public Transportation Open Data Center.

Precautions

You need to have both the ODPT apikey.

Create a file called apikeys.json with the following content:

{
    "odpt": "YOUR_ODPT_APIKEY_HERE"
}

Alternatively, the script can read the apikey from APIKEY_ODPT environment variable.

It's also possible to put the apikeys.json file in a different place - if path to that file is provided via the APIKEYS_FILE environment variable.

Running

TokyoGTFS is written in Python 3 and depends on several external modules:

Before launching install those using pip3 install -r requirements.txt, or e.g. from your package manager.

Here's a list of all the scripts.

static.rail

python3 -m static.rail

Options: -h/--help, -v/--verbose.

After those flags, one has to specify what action to take:

static.bus

python3 -m static.bus

Options: -h/--help, -v/--verbose.

After those flags, one has to specify what action to take:

Attributions

Always use the data in compliance with sources' terms and conditions. See for a list of all used sources.

License

TokyoGTFS is shared under the MIT License license, included in the file license.md.