summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorLines
2022-09-11train details: add an icon for construction work4.11.2Daniel Friesel-2/+8
2022-08-31train details: replace HAFAS 'Information'/'Störung' messages with iconsDaniel Friesel-10/+34
2022-08-21train utilization API: marudor.de -> bahn.expert4.10.4Daniel Friesel-1/+1
2022-07-26shorten 'show_realtime=1' to 'rt=1'Daniel Friesel-9/+10
2022-06-14correctly initialize ice_type_map hash4.9.5Daniel Friesel-1/+1
This ensures proper operation when the zugbildungsplan is empty, e.g. because the underlying source file has become invalid. Closes #14
2022-04-14stationboard: directly render jsonDaniel Friesel-32/+25
The render_to_string path is only needed for legacy callback requests. With this change, renderer->compression(0) is no longer required for non-callback json requests to work.
2022-04-11Disable Mojolicious compression4.9.4Daniel Friesel-0/+4
Mojoliciuos 9.23 changes compression from default-off to default-on. However, compression breaks JSON endpoints for some clients. So we explicitly disable it now. Closes #12
2022-03-30HAFAS: more generic fix for invalid XML4.9.3Daniel Friesel-1/+1
2022-03-20fix marudor.de auslastung (IRIS uses iso-8859-1 in an "utf-8" document)4.9.2Daniel Friesel-2/+4
2022-02-13urlescape station names before passing them to marudor.de4.9.1Daniel Friesel-0/+4
2022-01-30Use async IRIS (new_p)async-irisDaniel Friesel-156/+169
2022-01-30json_route_diff: add missing $self argumentDaniel Friesel-1/+1
2022-01-25refactor json_route_diff into Stationboard controllerDaniel Friesel-77/+73
2022-01-25JSON interface: add (not-yet-final) replacement train dataDaniel Friesel-42/+51
2021-12-12Allow IRIS base URL to be overridden via DBFAKEDISPLAY_IRIS_BASE variable4.8.1Daniel Friesel-0/+1
2021-12-12Use EVA ID for IRIS requestsDaniel Friesel-1/+1
They change less frequently than DS100 codes Closes #11
2021-11-30perltidyDaniel Friesel-14/+14
2021-11-30disable cycle display (lacking Open Data)Daniel Friesel-1/+2
2021-11-28marudor: do not request auslastung if there's not next_stationDaniel Friesel-0/+5
2021-10-30HAFAS: Hide unhelpful messagesDaniel Friesel-0/+10
2021-10-28remove geotrain feature (i.e., search trains, not stations, in the vicinity)Daniel Friesel-11/+0
it was a nice little experiment, but ultimately not fit for permanent use.
2021-10-23Switch from Geo::Distance to GIS::DistanceDaniel Friesel-34/+28
2021-08-31Add past optionDaniel Friesel-4/+17
2021-08-31Increase default lookahead to three hours; respect $DBFAKEDISPLAY_LOOKAHEADDaniel Friesel-8/+6
2021-08-15fix hidelowdelay when combined with show_realtime4.6.1Daniel Friesel-3/+0
2021-08-13correctly show wagon order error message4.5.3Daniel Friesel-1/+2
was broken by ca372be9811a183d11a00abd539442a9e2e53cae
2021-08-13marudor: cache negative replies4.5.2Daniel Friesel-2/+6
2021-08-13Wagonorder: send request to www.apps-bahn.de when availability is unknownDaniel Friesel-21/+46
www.apps-bahn.de/wr no longer serves "tryThese" suggestions. So, unless we know from lib.finalrewind.org/dbdb/has_wagonorder (via ist-wr.noncd.db.de) that the trais definitely has a wagon order, we send a wagon order request to www.apps-bahn.de/wr to determine whether it has one or not. We do cache the result though, so if a user clicks on the wagon order link, we don't need to request it again.
2021-07-26train details/route: indicate whether a stop is past or future4.5.0Daniel Friesel-11/+27
2021-07-18show mising realtime data in departure overview as wellDaniel Friesel-0/+12
2021-07-18Remove legacy $result->can checks (leftover from T-S-DE-DB support)Daniel Friesel-8/+2
2021-07-18Show cancelled stops in HAFAS-only train details viewDaniel Friesel-0/+3
2021-07-18departure view: use IRIS to decide whether realtime is missingDaniel Friesel-1/+12
2021-07-18note that EFA occupancy is estimation-based4.3.0Daniel Friesel-3/+3
2021-07-18show warning if realtime data is missingDaniel Friesel-0/+6
2021-07-17train details: annotate possibly bogus (schedule-only) timesDaniel Friesel-0/+11
2021-07-12Handle another case of funky HAFAS HTML ("foo <> bar")4.2.2Daniel Friesel-0/+8
2021-07-10_eva: switch to new occupancy-by-eva endpointDaniel Friesel-1/+2
2021-07-04stationboard: extend external DS100 prefix listDaniel Friesel-1/+2
2021-07-04map: decrease stop circle size when stops are close together4.2.1Daniel Friesel-9/+25
2021-07-02only show ambiguous page if the input -really- was ambiguousDaniel Friesel-2/+6
2021-07-02Note that dbf is limited to DB lines when encountering no resultsDaniel Friesel-8/+24
2021-06-19fix route for train details (/z/:train/*station)Daniel Friesel-1/+1
2021-06-05HAFAS: work around yet another case of invalid XMLDaniel Friesel-2/+6
2021-05-31fix trailing ":" after cancellation messages without reason4.1.0Daniel Friesel-2/+8
2021-04-24remove arbitrary HTML tags from HAFAS HIMMessage attribute content4.0.2Daniel Friesel-2/+11
2021-04-09HAFAS->get_polyline_p: Do not leak credentials in error messages4.0.1Daniel Friesel-5/+8
2021-04-06trainsearch: handle unknown train types4.0.0Daniel Friesel-0/+4
IRIS reports unknown train types as "-"; HAFAS wants the train type to be left out in this case
2021-04-06trainsearch_p: use correct hash key in error mesagesDaniel Friesel-3/+3
2021-04-06Remove support for RIS/HAFAS backendDaniel Friesel-242/+88