When the user requests public transportation directions between two locations with specific constraints (e.g., shortest walking distance, preferred transport modes, or avoiding certain transfers). This skill geocodes addresses, finds nearest transit stations, calculates optimal routes using transit APIs, identifies transfer points, compiles sequential station lists, and provides detailed journey summaries including distances and travel times.
Plan an optimal public transit route between two locations based on user constraints (e.g., shortest walking distance, preferred modes, avoiding certain transfers). The final output must include a detailed journey summary and a sequential list of all stations passed, saved to a specified file.
routine.txt).google_map-maps_geocode to obtain precise coordinates and formatted addresses for both origin and destination.google_map-maps_search_places with query "MRT station" (or other relevant transit types) near the geocoded origin.google_map-maps_distance_matrix (mode: "walking") to compare walking distances to the nearest candidate stations. Select the station with the shortest walking distance to honor the "shortest walking distance" constraint.google_map-maps_directions with mode: "transit" between the origin and destination addresses.directions API provides a high-level route but may not list every intermediate station.local-web_search or fetch-fetch_markdown to find authoritative lists of stations for each line segment (e.g., Wikipedia pages for "Downtown Line" and "East–West Line").filesystem-write_file to save only the station names, one per line, to the user-specified file (e.g., routine.txt). Do not include any other text in this file.local-claim_done to signal successful task completion after providing the summary and confirming the file has been saved.directions result and note any potential gaps in the output summary.google_map-maps_geocode: Convert addresses to coordinates.google_map-maps_search_places: Find transit stations near a point.google_map-maps_distance_matrix: Compare walking distances to stations.google_map-maps_directions: Get the primary transit route.local-web_search / fetch-fetch_markdown: Find detailed station lists for specific transit lines.filesystem-write_file: Save the final station list.local-claim_done: Signal task completion.