Navigation
Role
You help the user get directions, find nearby places, and start turn-by-turn navigation using Google Maps and web search.
Trigger Keywords
"navigate", "directions", "how to get to", "map", "find nearby", "distance to", "導航", "怎麼去", "附近", "路線"
Prerequisites
- Google Maps app must be installed
Workflow: Start Navigation to a Destination
- Use intent URI for direct navigation:
app launch_intent intent="google.navigation:q=<destination_address_or_place>"
- Google Maps opens directly in navigation mode with route calculated
- The user can start driving/walking immediately
Workflow: Get Directions (Without Starting Navigation)
- Launch Google Maps:
app launch com.google.android.apps.maps
ui read_screen — confirm Maps is open
- Tap the search bar:
ui click
ui type text="<destination>"
ui press_key key="ENTER"
ui read_screen — read the place info card
- Tap "Directions":
ui click
ui read_screen — read available routes with duration and distance
- Report the options to the user (driving, transit, walking times)
Workflow: Search for a Place or Category
- Launch Google Maps:
app launch com.google.android.apps.maps
- Tap the search bar:
ui click
ui type text="<query>" — e.g., "coffee shop near me", "gas station", "ATM"
ui press_key key="ENTER"
ui read_screen — read the list of results with names, ratings, distance
- Summarize the top results to the user
Workflow: Quick Distance/Duration Check (Without Opening Maps)
- Use web search:
web search query="distance from <origin> to <destination>"
- Parse the result for driving/transit time and distance
- Report to the user directly — no app needed
Workflow: Share a Location
- Find the place in Google Maps (see search workflow above)
- Tap on the place to open its info card
ui click on "Share"
clipboard write the link, or share directly to a messaging app
Tips
- For intent-based navigation, URL-encode the destination: spaces become
+ or %20
- The intent URI also supports coordinates:
google.navigation:q=25.033,121.565
- Add travel mode to intent:
google.navigation:q=<dest>&mode=w (w=walking, b=biking, d=driving)
- If the user asks "how long to get to X", prefer the web search workflow for a quick answer
- For transit directions, mention bus/train line numbers and transfer points from the results
1---2name: navigation3description: Get directions, find places, and navigate using Google Maps4---5# Navigation67## Role8You help the user get directions, find nearby places, and start turn-by-turn navigation using Google Maps and web search.910## Trigger Keywords11"navigate", "directions", "how to get to", "map", "find nearby", "distance to", "導航", "怎麼去", "附近", "路線"1213## Prerequisites14- Google Maps app must be installed1516## Workflow: Start Navigation to a Destination17181. Use intent URI for direct navigation: `app launch_intent intent="google.navigation:q=<destination_address_or_place>"`192. Google Maps opens directly in navigation mode with route calculated203. The user can start driving/walking immediately2122## Workflow: Get Directions (Without Starting Navigation)23241. Launch Google Maps: `app launch com.google.android.apps.maps`252. `ui read_screen` — confirm Maps is open263. Tap the search bar: `ui click`274. `ui type text="<destination>"`285. `ui press_key key="ENTER"`296. `ui read_screen` — read the place info card307. Tap "Directions": `ui click`318. `ui read_screen` — read available routes with duration and distance329. Report the options to the user (driving, transit, walking times)3334## Workflow: Search for a Place or Category35361. Launch Google Maps: `app launch com.google.android.apps.maps`372. Tap the search bar: `ui click`383. `ui type text="<query>"` — e.g., "coffee shop near me", "gas station", "ATM"394. `ui press_key key="ENTER"`405. `ui read_screen` — read the list of results with names, ratings, distance416. Summarize the top results to the user4243## Workflow: Quick Distance/Duration Check (Without Opening Maps)44451. Use web search: `web search query="distance from <origin> to <destination>"`462. Parse the result for driving/transit time and distance473. Report to the user directly — no app needed4849## Workflow: Share a Location50511. Find the place in Google Maps (see search workflow above)522. Tap on the place to open its info card533. `ui click` on "Share"544. `clipboard write` the link, or share directly to a messaging app5556## Tips57- For intent-based navigation, URL-encode the destination: spaces become `+` or `%20`58- The intent URI also supports coordinates: `google.navigation:q=25.033,121.565`59- Add travel mode to intent: `google.navigation:q=<dest>&mode=w` (w=walking, b=biking, d=driving)60- If the user asks "how long to get to X", prefer the web search workflow for a quick answer61- For transit directions, mention bus/train line numbers and transfer points from the results