VARUNA

API explorer

Never sends the desk passphrase

Every path in the committed OpenAPI snapshot, read against the API at https://varuna-api-production.up.railway.app. Reads and the two compute-only requests are sent; anything that changes state is shown and copied, never sent.

Try it

Every preset is pinned to run MUM-20190702T0310Z-sky1.0-twin1.0-flash0.1-baked, the 08:40 IST cycle of the reconstructed replay.

KEM Hospital to Sion Hospital at 08:40 IST, ambulance profile, risk tolerance 0.2, with the safe corridors and the reasons. Both hospitals are read from the city register.

POST/v1/route

Route around the forecast water, beside what a naive router does

What the handler says about itself

Plan one trip. Body: ``{origin, destination, depart_at?, profile?, risk_tolerance?, run_id?, spread?, trip_id?, explain?}``. Returns both routes, because the comparison is the product: a dispatcher who only sees the safe route has no way to judge whether the detour was worth it. ``spread`` (default true) adds ``corridors[]`` - up to three safe roads with the share of traffic the policy gives each, and the one this request is assigned to. ``trip_id`` makes that assignment stable for a trip, so a reader who reloads is not sent somewhere else; it is the client's own random id and nothing is stored against it. ``explain`` (default true) adds ``reasons[]``, which is structured data - the frontend writes the sentences (TECH_SPEC 3.2).

Looking up KEM Hospital and Sion Hospital in the city register.

curl -X POST 'https://varuna-api-production.up.railway.app/v1/route' \
  -H 'content-type: application/json' \
  -d '{"origin":null,"destination":null,"depart_at":"2019-07-02T08:40:00+05:30","profile":"ambulance","risk_tolerance":0.2,"run_id":"MUM-20190702T0310Z-sky1.0-twin1.0-flash0.1-baked","spread":true,"trip_id":"api-explorer-demo","explain":true}'

Response

Send the request to see the API's answer here.

Command palette

Jump to a hotspot, facility, pipe, screen or run, or start an action