time-space-train-planner
time-space-train-planner copied to clipboard
Browser-based tool to visualize public transport journeys retrieved from a HAFAS system
Routing based on delay and transfer success probabilities (depending on transfer time, including negative transfer times) and all alternative routes when missing one connection. Delay statistics need to be obtained...
Currently just showing "Error 502: Failed requesting timetable data.". HTTP 502 Connection not found (too far in the past) e.g. /journeys?departure=2022-09-19T08%3A00%3A00.000%2B02%3A00&from=692415&to=895914 ``` { "isHafasError": true, "request": "{\"lang\":\"en\",\"svcReqL\":[{\"cfg\":{\"polyEnc\":\"GPA\",\"rtMode\":\"HYBRID\"},\"meth\":\"TripSearch\",\"req\":{\"getPasslist\":false,\"maxChg\":-1,\"minChgTime\":0,\"depLocL\":[{\"type\":\"S\",\"lid\":\"A=1@L=692415@\"}],\"viaLocL\":[],\"arrLocL\":[{\"type\":\"S\",\"lid\":\"A=1@L=895914@\"}],\"jnyFltrL\":[{\"type\":\"PROD\",\"mode\":\"INC\",\"value\":\"1023\"},{\"type\":\"META\",\"mode\":\"INC\",\"meta\":\"notBarrierfree\"}],\"gisFltrL\":[],\"getTariff\":false,\"ushrp\":true,\"getPT\":true,\"getIV\":false,\"getPolyline\":false,\"outDate\":\"20220919\",\"outTime\":\"080000\",\"outFrwd\":true,\"trfReq\":{\"jnyCl\":2,\"tvlrProf\":[{\"type\":\"E\",\"redtnCard\":null}],\"cType\":\"PK\"}}}],\"client\":{\"type\":\"AND\",\"id\":\"DB\",\"v\":21120000,\"name\":\"DB Navigator\"},\"ext\":\"DB.R21.12.a\",\"ver\":\"1.34\",\"auth\":{\"type\":\"AID\",\"aid\":\"n91dB8Z77MLdoR0K\"}}", "url": "https://reiseauskunft.bahn.de/bin/mgate.exe?checksum=3cfb0da25d0e81e49aa943346f120265",...
Currently, some interchange stations are retrieved from HAFAS journeys, the rest is up to the user. Interchange stations should be collected from additional sources, e.g. * Intermediate stops from journeys...
Show details in a pull-up card or similar. - [x] Line ID and Name - [x] Dep, Arr, Platform - [x] Destination - [x] Remarks, Warnings - [ ] Possibly...
* Show warning if HAFAS finds journey not found by TSTP * Display HAFAS-recommended journeys only when selecting them (just as TSTP-recommended journeys). Currently, it's difficult to tell, which red...
To save bandwidth and processing at HAFAS. Idea: Only request local transport (buses, trams...) if there are other nearby stations selected. More intelligent time window, especially for longer journeys.
Some connections that might be reachable are marked as redundant. Some that are superfluous are not marked as redundant. Also relevant for foot connections, which are not shown at all,...
Train splits and trains with multiple IDs (RE/IC, NJ/IC) are apparently not always correctly handled. TB investigated.
Arrows should lead to next best connection (i.e. shortest path) instead of next connection to somewhere.