Skip to content

Instantly share code, notes, and snippets.

View derhuerst's full-sized avatar

Jannis R derhuerst

View GitHub Profile
@derhuerst
derhuerst / _notes.md
Last active July 1, 2024 12:53
additional material for a talk on GTFS Pathways & GTFS-RT PathwayUpdates

GTFS Pathways

  • als pathways.txt Teil der GTFS-Schedule/Static-Spezifikation -> statische Daten
  • bildet alle Umsteigebeziehungen in einer Station (Hub) als Graph ab
    • Knoten sind Eingänge/Bahnsteige/etc.
    • Kanten sind Wege/Fahrtreppen/Aufzüge/etc.
    • Achtung: der Graph muss vollständig sein –> wenn Wege fehlen, werden diese von konsumierender Software als nicht existierend angenommen
  • existierende Feeds
    • curl 'https://storage.googleapis.com/storage/v1/b/mdb-csv/o/sources.csv?alt=media' -fsSL | qsv search -s features '\bpathways\b' | qsv select location.country_code,location.subdivision_name,provider,name
    • DE (im DELFI-GTFS): VBB (~500), MVV (~200), SSB/NVBW (~200), HVV (~130), ansonsten vereinzelt
@derhuerst
derhuerst / download.sh
Created June 24, 2024 13:54
Fusion Festival 2024 timetable/lineup
#!/bin/bash
set -eu -o pipefail
curl 'https://timetable.fusion-festival.de/static/js/346.b4b1c224.chunk.js' \
--compressed -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB,en;q=0.5' \
-fsSL \
| node -e 'const bundle = fs.readFileSync(0, "utf8"); globalThis.self = {}; eval(bundle + ""); const chunk = self.webpackChunktimetable[0][1]; const mod = {}; chunk[Object.keys(chunk)[0]](mod); process.stdout.write(JSON.stringify(mod.exports))'
@derhuerst
derhuerst / 01-splashpage-request.json
Created May 25, 2024 14:43
ODEG WiFi portal network requests
{"operationName":"splashpage","variables":{"user_session_id":"7867e542-590c-4154-9a85-df33d5587aff","language":"en","initial":true},"query":"query splashpage($user_session_id: ID\u0021, $language: String\u0021, $initial: Boolean) {
splashpage(
user_session_id: $user_session_id
language: $language
initial: $initial
) {
error {
...Error
__typename
}
@derhuerst
derhuerst / _.md
Created February 16, 2024 10:46
ICE 645 from Essen Hbf to Berlin Spandau

For a long time, there were <6 minutes of delay. In Berlin-Spandau, a delay happened because of a medical emergency.

@derhuerst
derhuerst / ice-572-2023-11-02T19:41:02+01:00-hafas.json
Last active November 4, 2023 01:18
ICE 572 from Mannheim Hbf to Berlin Hbf
{"public":true,"mode":"train","line":{"type":"line","id":"ice-572","name":"ICE 572"},"traveledDistance":166334,"distanceToPreviousStop":4124,"totalDistance":597863,"next":{"type":"station","id":"8010101","name":"Erfurt Hbf","location":{"type":"location","latitude":50.972551,"longitude":11.038499}},"scheduledNext":{"type":"station","id":"8010101","name":"Erfurt Hbf","location":{"type":"location","latitude":50.972551,"longitude":11.038499}},"previous":{"type":"station","id":"8000105","name":"Frankfurt(Main)Hbf","location":{"type":"location","latitude":50.107145,"longitude":8.663789}},"last":{"type":"station","id":"8098160","name":"Berlin Hbf (tief)","location":{"type":"location","latitude":52.525592,"longitude":13.369545}},"passed":[{"station":{"type":"station","id":"8000096","name":"Stuttgart Hbf","location":{"type":"location","latitude":48.784084,"longitude":9.181635}},"arrival":null,"arrivalDelay":null,"arrivalPlatform":"9","departure":"2023-11-02T17:24:39+01:00","departureDelay":99,"departurePlatform":"9","
@derhuerst
derhuerst / _.md
Created November 2, 2023 17:19
ICE 104 from Karlsruhe Hbf to Mannheim Hbf

We left with a delay of 6 minutes, and arrived with a delay of 9 minutes.

@derhuerst
derhuerst / _.md
Created November 2, 2023 16:04
TGV 9575 from Paris Est to Karlsruhe Hbf

There was no delay until Strasbourg; From there till Karlsruhe, there was a delay of 5-10 minutes.

@derhuerst
derhuerst / _.md
Created November 2, 2023 16:00
TGV Ouigo (OGV) 7652 from Bordeaux to Paris Montparnasse

there was no delay

@derhuerst
derhuerst / _.md
Created September 19, 2023 10:08
EC 171 from Berlin Hbf to Praha hl.n.

The was no delay.

@derhuerst
derhuerst / 01-tripsearch.http
Created September 3, 2023 11:22
DB Navigator v23.08.01 on iOS: HTTP requests
POST /bin/mgate.exe?checksum=91746988ad3df7292ecb95c35eb65875 HTTP/1.1
Host: reiseauskunft.bahn.de
Content-Type: application/json
Accept-Encoding: gzip, deflate, br
Cookie: AWSALB=UwdJtOV5ejYzrkWNGhXoqr9bBtrjNg4laLKECYpK4EqNrhbqCS2TQ1Ep/4phJrpoYim+m4EZBhcRyLr3GJdwTvAtH6iaTd1ifIK35Zyl22TEledn3mlBvZL5nfPE; AWSALBCORS=UwdJtOV5ejYzrkWNGhXoqr9bBtrjNg4laLKECYpK4EqNrhbqCS2TQ1Ep/4phJrpoYim+m4EZBhcRyLr3GJdwTvAtH6iaTd1ifIK35Zyl22TEledn3mlBvZL5nfPE; utag_main=v_id:0188b53b978a1219ed98086fb4d81506d003706500432$_sn:20$_se:3$_ss:0$_st:1693740651409$ses_id:1693738846547%3Bexp-session$_pn:1%3Bexp-session; request_consent_v=3; s_vi=[CS]v1|0B4B7D97B8374B8C-2FFCABEBD7E2A777[CE]; AMCV_5FA50A5953FB37E50A4C98BC%40AdobeOrg=-408604571%7CMCAID%7C0B4B7D97B8374B8C-2FFCABEBD7E2A887%7CMCIDTS%7C19537%7CMCMID%7C17007382676835350149043660885083312138%7CvVersion%7C4.6.0; optimizelyEndUserId=0A9887D8-3427-4557-862B-3697EC8CA833
Connection: keep-alive
Accept: */*
User-Agent: DB Navigator/23.08.01 (iPhone; iOS 16.6; Scale/2.00)
Accept-Language: