Published on

Data Visualization #1: Brno public transportation

Authors
  • avatar
    Name
    Rob
    Twitter
    @x

Prompt: Grok3

This time, a single prompt wasn't enough for a working result. However, the entire experiment was purely language model driven, with no manual code editing. The data shown is unverified. The aim was only to create a purely visual experience, not an accurate simulation of Brno's public transport.

Input data

IDS JMK GTFS / GTFS timetable data

The input data consists of two simple text files.

Input data snippets:

stops.txt

stop_idstop_namestop_latstop_lonzone_idlocation_typeparent_station
U15775Z2Hevlín, škola48.75128516.380187"570"0U15775N1
U15773Z2Hevlín, cihelna48.76138716.38346"570"0U15773N2
U15627Z2Hrabětice48.79686216.395222"560"0U15627N3
U15640Z2Šanov, u mostu48.79923516.386832"560"0U15640N4
U15639Z2Šanov, požární zbrojnice48.80214316.373927"560"0U15639N5

stop_times.txt

trip_idarrival_timedeparture_timestop_idstop_sequencepickup_typedrop_off_type
14:32:004:32:00U15775Z2100
14:34:004:34:00U15773Z2233
14:39:004:39:00U15627Z2300
14:41:004:41:00U15640Z2400
14:43:004:43:00U15639Z2500

The simulation input is limited to these files. Therefore, many other parameters, such as the day of the week, are not considered.

Output:

Open Simulation →

Brno public transportation

Controlling the Simulation

You can adjust the simulation with these parameters:

Parameters:

  • Simulation Time: 0-24 hours
  • Simulation Speed: 1x-1000x
  • Vehicle Size: 1-5 px
  • Stop Size: 1-5 px

Optional features:

  • Real-Time button: Enabling the "Real-Time" option in the animation solely configures the current time and simulation speed to 1x. This should not be confused with the processing of real-time data feeds from the internet.
  • My Position button: Displays a crosshair indicating your position