Ptv
Connector for the ptv API, generated deterministically from its OpenAPI spec (endpoints, auth, and methods match the spec exactly — nothing is invented).
- 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>