get_departure_monitor
Retrieve real-time departure times for public transport at a specific stop using the Transport NSW Trip Planner API.
Instructions
Get real-time departure monitor information for a specific stop from the Trip Planner API.
This function uses direct HTTP requests to the Transport NSW API.
Args:
stop_id (str): Stop ID or global stop ID
date (str, optional): Date in DD-MM-YYYY format. Defaults to today's date.
time (str, optional): Time in HH:MM format. Defaults to current time.
mot_type (int, optional): Mode of transport type filter. Options:
1: Train
2: Metro
4: Light Rail
5: Bus
7: Coach
9: Ferry
11: School Bus
max_results (int, optional): Maximum number of results to return. Default is 1.
Returns:
list: Simplified list of departure information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop_id | Yes | ||
| date | No | ||
| time | No | ||
| mot_type | No | ||
| max_results | No |