This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "userCount": 79, | |
| "avgFootprintPerMonth": [ | |
| { "Sep", 6.92 }, | |
| { "Oct", 6.85 }, | |
| { "Nov", 6.79 } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DROP TABLE IF EXISTS agency; | |
| DROP TABLE IF EXISTS feed_info; | |
| DROP TABLE IF EXISTS stops; | |
| DROP TABLE IF EXISTS routes; | |
| DROP TABLE IF EXISTS calendar; | |
| DROP TABLE IF EXISTS calendar_dates; | |
| DROP TABLE IF EXISTS shapes; | |
| DROP TABLE IF EXISTS trips; | |
| DROP TABLE IF EXISTS stop_times; | |
| DROP TABLE IF EXISTS frequencies; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import glob | |
| import json | |
| result = [] | |
| for file in glob.glob("*.json"): | |
| with open(file, "r") as inputfile: | |
| result.extend(json.load(inputfile)) | |
| with open("TIPLOC_STANOX_LOCs_MERGED.json", "w") as outfile: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "header":{ | |
| "msg_type":"0003", | |
| "source_dev_id":"VLA5", | |
| "user_id":"#QHPA026", | |
| "original_data_source":"SDR", | |
| "msg_queue_timestamp":"1511528232000", | |
| "source_system_id":"TRUST" | |
| }, | |
| "body":{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| data = None | |
| extractedData = [] | |
| with open("airport-codes_json.json", "r") as read_file: | |
| data = json.load(read_file) | |
| for item in data: | |
| if item["iata_code"] != None and (item["type"] == "large_airport" or item["type"] == "medium_airport"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| data = None | |
| extractedData = [] | |
| with open("airport-codes_json.json", "r") as read_file: | |
| data = json.load(read_file) | |
| for item in data: | |
| if item.iata_code != None: |