-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.py
27 lines (21 loc) · 817 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
from mta_gtfs_data_getter import download_gtfs_data
from mta_gtfs_shapefiles_maker import (
make_bus_routes_shapefiles,
make_bus_stops_shapefiles,
make_rail_routes_shapefiles,
make_rail_stops_shapefiles,
make_subway_entrances_shapefiles,
)
from datetime import datetime
path_name = os.getcwd()
# folder = "July2019"
folder = datetime.today().strftime("%b%Y")
rails = ["LIRR", "metro_north", "nyc_subway"]
download_gtfs_data(folder)
for rail in rails:
make_rail_routes_shapefiles(path=path_name, folder=folder, rail=rail)
make_rail_stops_shapefiles(path=path_name, folder=folder, rail=rail)
make_bus_routes_shapefiles(path=path_name, folder=folder)
make_bus_stops_shapefiles(path=path_name, folder=folder)
make_subway_entrances_shapefiles(path=path_name, folder=folder)