Ptv
Tool for the ptv API.
- Base URL:
http://timetableapi.ptv.vic.gov.au - Auth:
bearer(pass your key via theapiKeyinput)
Operations
departures_getforstop— GET /v3/departures/route_type/{route_type}/stop/{stop_id} — View departures for all routes from a stopdepartures_getforstopandroute— GET /v3/departures/route_type/{route_type}/stop/{stop_id}/route/{route_id} — View departures for a specific route from a stopdirections_forroute— GET /v3/directions/route/{route_id} — View directions that a route travels indirections_fordirection— GET /v3/directions/{direction_id} — View all routes for a direction of traveldirections_fordirectionandtype— GET /v3/directions/{direction_id}/route_type/{route_type} — View all routes of a particular type for a direction of traveldisruptions_getalldisruptions— GET /v3/disruptions — View all disruptions for all route types
Inputs
apiKey— your ptv API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: departures_getforstop
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: departures_getforstop, departures_getforstopandroute, directions_forroute, directions_fordirection, directions_fordirectionandtype, disruptions_getalldisruptions |
direction_id |
string | no | — | Path parameter direction_id (required by some operations). |
route_id |
string | no | — | Path parameter route_id (required by some operations). |
route_type |
string | no | — | Path parameter route_type (required by some operations). |
stop_id |
string | no | — | Path parameter stop_id (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |