As proposed in Traewelling/line-colors#91.
To be deprecated in favor of a more scalable and sustainable approach (e.g. a shared repo).
As proposed in Traewelling/line-colors#91.
To be deprecated in favor of a more scalable and sustainable approach (e.g. a shared repo).
This uses gtfs-via-duckdb.
curl -fsSL \
'https://mobility-api.mobility-database.fintraffic.fi/gtfs-realtime/v2/' \
-H 'accept: application/protobuf' \
-H "x-api-key: $api_key" \
| ~/web/print-gtfs-rt-cli/cli.js -j \
| duckdb -readonly -csv -f match.sql gtfs/fintraffic.gtfs.duckdb \
| qsv select '!item' | head -n 10| GET /public/trafficinfo-api/v2/rest/train-routes?transportId=3943&lang=en-GB&date=2025-09-03 HTTP/3 | |
| Host: prod-api.adp.sj.se | |
| User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0 | |
| Accept: */* | |
| Accept-Language: en-GB,en;q=0.5 | |
| Accept-Encoding: gzip, deflate, br, zstd | |
| Referer: https://www.sj.se/ | |
| ocp-apim-subscription-key: 39296c1a13304493b44236e1bcb7f544 | |
| request-id: |cebb240828a34cf59a9bb7df6302e49b.14c2fddb78834d96 | |
| traceparent: 00-cebb240828a34cf59a9bb7df6302e49b-14c2fddb78834d96-01 |
| GET /api/buslocation/FetchBusLines HTTP/2 | |
| Host: www.vybuss.com | |
| User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0 | |
| Accept: application/json, text/plain, */* | |
| Accept-Language: en-GB,en;q=0.5 | |
| Accept-Encoding: gzip, deflate, br, zstd | |
| Connection: keep-alive | |
| Referer: https://www.vybuss.com/traffic-information/ | |
| Cookie: ASP.NET_SessionId=pduk1iwtt3wabugauungkoob; __RequestVerificationToken=YAQMK7HMvCbpzZTsSaSyhqynJeydctGMyyf8nG2ZCaDN2rtAS1L7F3Yl8wCFGDhzE4HT8AG-nucy7_kHFqQMp8zYoBk1 | |
| Sec-Fetch-Dest: empty |
| const t0 = Date.parse('2025-04-20T13:00+02:00') | |
| const waypoints = kmtBoot.getProps().page.store.moc['//api.komoot.de/v007/discover_tours/11959690']._coordsGenerate()[0] | |
| process.stdout.write(`\ | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <gpx version="1.1" xmlns="http://www.topografix.com/GPX/1/1"> | |
| <metadata> | |
| <name>tour</name> | |
| </metadata> | |
| <trk> |
| import logging | |
| import math | |
| from build123d import * | |
| logging.basicConfig(level=logging.WARN) | |
| from yacv_server import show | |
| # %% | |
| hole_diameter = 20 | |
| board_x, board_y = 400, 120 |
| curl 'https://help.flixbus.com/s/sfsites/aura?r=18&other.CSPaxUtilities.checkBookingNumber=1' \ | |
| -X 'POST' \ | |
| -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \ | |
| -H 'Accept: */*' \ | |
| -H 'Accept-Language: en-GB,en;q=0.9' \ | |
| -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15' \ | |
| --data 'message=%7B%22actions%22%3A%5B%7B%22id%22%3A%22273%3Ba%22%2C%22descriptor%22%3A%22apex%3A%2F%2FCSPaxUtilities%2FACTION%24checkBookingNumber%22%2C%22callingDescriptor%22%3A%22markup%3A%2F%2Fc%3Acs_pax_feedbackForm%22%2C%22params%22%3A%7B%22bookingNumber%22%3A%223192968124%22%7D%7D%5D%7D&aura.context=%7B%22mode%22%3A%22PROD%22%2C%22fwuid%22%3A%22eGx3MHlRT1lEMUpQaWVxbGRUM1h0Z2hZX25NdHFVdGpDN3BnWlROY1ZGT3cyNTAuOC40LTYuNC41%22%2C%22app%22%3A%22siteforce%3AcommunityApp%22%2C%22loaded%22%3A%7B%22APPLICATION%40markup%3A%2F%2Fsiteforce%3AcommunityApp%22%3A%22wi0I2YUoyrm6Lo80fhxdzA%22%2C%22MODULE%40markup |