mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
transitous: add bruno
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user