maps_swap_route_endpoints
Swaps the origin and destination of a Google Maps directions request by rebuilding URL parameters, preserving the current mode and avoid constraints.
Instructions
Swap the explicit origin and destination of one fresh simple Google Maps directions request by rebuilding documented Maps URL parameters rather than automating the observed UI swap button. expectedOrigin and expectedDestination must match the active canonical request; waypoint routes and omitted origins fail closed. The current mode and bounded avoid constraints are preserved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expectedOrigin | Yes | ||
| expectedDestination | Yes |