Improved www.ttss.krakow.pl
edit | blame | history | raw

TTSS KRK

This is a rewrite of http://www.ttss.krakow.pl/ website
presenting predicted tram arrival times in Krakow.

Check https://mpk.jacekk.net/ for a live version.

Contact and suggestions: mpk_AT_jacekk.info

Build Status

Differences

  • Presents tram delays.
  • Lists lines passing through selected stop.
  • Improved autocompletion.

Usage

Changing language

You can change the interface language using the dropdown near "TTSS Kraków" header.
Currently only Polish (PL) and English (EN) translations are available.

Selecting the stop

Enter first letter of a stop name into the input field labeled as "Stop name".
Suggestions will be displayed in the dropdown located to the right.

Each name component is matched separately (case-insensitive), so:

  • "ba" matches "Teatr Bagatela",
  • "d g" matches "Dworzec Główny", "Dworzec Główny Tunel" and "Dworzec Główny Zachód",
  • "aleja" matches "M1 Al. Pokoju" and "TAURON Arena Kraków Al. Pokoju",
  • "święt" matches "Plac Wszystkich Świętych", "Św.Gertrudy" and "Św.Wawrzyńca".

When the selected suggestion in the dropdown matches the desired stop,
click the "Go" button or (alternatively) press the ENTER key.

Display

After selecting the stop, the following information are visible:

  • Line - line number,
  • Direction - final stop on the line,
  • Time - predicted/scheduled departure time,
  • Delay - calculated delay from the schedule.

Relative times (eg. 3 min) are real-time arrivals based on tram location data.
Absolute times (eg. 8:01) are scheduled departures, shown when the tram cannot be located.

To the left of the time is an icon representing the tram type:
♿ - low-floor tram,
*♿ - partially low-floor tram,
‐ - high-floor tram.
Hover over an icon to show the tooltip with tram identifier and vehicle type.

Rows have different background depending on the tram status:
- green - at the stop,
- white - en-route,
- yellow - delayed 4 or more minutes,
- red - delayed 10 or more minutes.

Clicking on the table row loads the schedule for the selected tram
- listing next stops and predicted departure times for each one.

Auto-refresh

The list is automatically updated every 20 seconds. It is possible to manually
reload the data using the "Refresh" button.

When an error occurs, automatic update is disabled and manual refresh is required.
This event is indicated by the red message box just over the stop name.

Bookmarks

Changing the language or selecting a stop causes the address to change.
You may bookmark the address to avoid entering the data each time.

License

Project is licensed under the BSD 3-Clause license.
Feel free to contribute!

edit | blame | history | raw
This project is licensed under the BSD 3-Clause license.

Copyright (c) 2016-2017, Jacek Kowalski (http://jacekk.info)
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this 
   list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, 
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
3. Neither the name Jacekk.info, nor Jacekk.net, nor the names of its 
   contributors may be used to endorse or promote products derived from this 
   software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
INSTALL 288 b
README 3 KB