transitous: add bruno

This commit is contained in:
Kaaninchen
2026-08-15 14:19:57 +02:00
parent 72b4d3185a
commit 5f6c3a223b
6 changed files with 108 additions and 0 deletions
@@ -0,0 +1,29 @@
info:
name: Geocode München HBF
type: http
seq: 1
http:
method: GET
url: https://api.transitous.org/api/v1/geocode?text=München Hbf
headers:
- name: User-Agent
value: Gleiswechsel-Discord-Bot
params:
- name: text
value: München Hbf
type: query
auth: inherit
runtime:
scripts:
- type: after-response
code: |-
const data = res.getBody();
bru.setEnvVar("stop_id", data[0].id);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5