This GTFS-RT Routes Visualiser was designed for end users to input a url for a GTFS-RT feed (e.g., gtfs_rt_url from Translink) and a stable download url for the most recent corresponding GTFS file (e.g., corresponding_gtfs_url found by clicking on “Download Latest” at TransitFeeds or the download icon at Transitland). Alternatively, the end user can query TPRN’s GTFS Catalogue by a recent date and some coordinates within the bounding box to receive a file name (e.g., http://115.146.86.165:7062/gtfs_catalogue_query_json?day=22&month=October&year=2021&lat=153.0260&lon=-27.4705) and then append the received file name to the end of the GTFS Catalogue’s download url and input the resultant url as the corresponding_download_url for the GTFS Visualiser Service (e.g., http://115.146.86.165:7062/gtfs/nsw_trainlink_f-r6-nswtrainliyinterlinebus_20170803_20171101.zip). Note: this service was designed for pairing with GTFS-RT with the corresponding GTFS and so it will output data without receiving a corresponding pair of GTFS and GTFS-RT download urls.
Still to do:
convert to Shiny App
perhaps capture mouse clicks to filter out stops and routes
or create figure popups that can be downloaded
Fig x. Primary Key Candidates from GTFS (blue) and GTFS-RT (green)
Fig x. Foreign Key Candidates from GTFS (blue) and GTFS-RT (green)
Fig x. The Final Data Model from GTFS (blue) and GTFS and GTFS-RT Tables Squashed for Spatial Attributes (purple)