Get route directions between two locations using Google Maps via browser automation. Triggers: /navigation [from] to [destination], how to get from X to Y, directions from A to B, route planning.
Get transit, walking, and driving directions between two locations using browser automation.
/navigation [origin] to [destination]
/navigation セルリアンタワー to 歌舞伎町
/navigation Tokyo Station to Shibuya
https://www.google.com/maps/dir/{origin}/{destination}// Open directions URL directly (URL-encodes automatically)
browser action=open targetUrl="https://www.google.com/maps/dir/{origin}/{destination}"
// Get page structure
browser action=snapshot targetId={tabId}
// Click on route option (use ref from snapshot)
browser action=act request={"kind":"click","ref":"e170"}
// Take screenshot
browser action=screenshot targetId={tabId}
Present routes in this structure:
| Time | Step |
|---|---|
| HH:MM | Depart from Origin |
| ↓ | Walk X min (Xm) |
| HH:MM | Station Name |
| ↓ | Train Line (X min) |
| HH:MM | Arrive at Destination |
Cost: ¥XXX | Total: XX min