% if ($city and $stop) { % if ($frontend eq 'png') { % } % elsif ($frontend eq 'html') { % } % elsif ($frontend eq 'json') {

JSON data for <%= $city %> <%= $stop %>

% if (param('backend') and param('backend') eq 'db') { The raw data consists of serialized Travel::Status::DE::DeutscheBahn-objects, see the ::Result documentation. % } % else { The raw data consists of serialized Travel::Status::DE::VRR-objects, see the ::Result and ::Line documentation. % }

% } % } % else {

VRR-Fakedisplay shows the next departures at a public transit stop, just like the Lumino LED displays used at some stops.

It works best for the VRR (Verkehrsverbund Rhein-Ruhr), but also supports most other German transit networks.

% }
<% if (my $error = stash 'error') { %>

Error: <%= $error %>

<% } %> <%= form_for _redirect => begin %>
City → Stop
<%= text_field 'city' %> <%= text_field 'stop' %> <%= submit_button 'Display' %>
optional:
display height [1..10]
<%= text_field 'no_lines' %>
min. offset [minutes]
<%= text_field 'offset' %>
match line prefix
<%= text_field 'line' %>
match platform
<%= text_field 'platform' %>
backend
<%= select_field backend => [['EFA (VRR)' => 'vrr'], ['HAFAS (DB)' => 'db']] %>
frontend
<%= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html'], ['JSON' => 'json']] %>
<% end %>
notes:
vrr-fakedisplay v<%= $version %>